Class PointF
Namespace: Aurigma.DesignAtoms.Model.Math
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class PointF : ICloneable
Inheritance: System.Object -> PointF
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
PointF
public PointF()
PointF
public PointF(float x, float y)
PointF
public PointF(PointF pt)
PointF
public PointF(PointF pt)
Properties
X
public float X { get; set; }
Y
public float Y { get; set; }
IsEmpty
public bool IsEmpty { get; }
Methods
Rotate
public PointF Rotate(float angle)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | angle |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Rotate
public PointF Rotate(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | angle |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
RotateAt
public PointF RotateAt(double angle, PointF center)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | angle | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Translate
public PointF Translate(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Translate
public PointF Translate(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | x | |
System.Double | y |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Scale
public PointF Scale(float scaleX, float scaleY)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | scaleX | |
System.Single | scaleY |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Scale
public PointF Scale(double scaleX, double scaleY)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | scaleX | |
System.Double | scaleY |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Transform
public PointF Transform(Transform transform, PointF center)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Transform | transform | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
Returns
Aurigma.DesignAtoms.Model.Math.PointF
Distance
public double Distance(PointF point)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | point |
Returns
System.Double
ToPoint
public Point ToPoint()
Returns
System.Drawing.Point
ToPointF
public PointF ToPointF()
Returns
System.Drawing.PointF
Clone
public PointF Clone()
Returns
Aurigma.DesignAtoms.Model.Math.PointF
AreEqualValues
public static bool AreEqualValues(PointF p1, PointF p2, double tolerance = 0.0001)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | p1 | |
| Aurigma.DesignAtoms.Model.Math.PointF | p2 | |
System.Double | tolerance |
Returns
System.Boolean
Equals
public bool Equals(PointF p, double tolerance = 0.0001)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.PointF | p | |
System.Double | tolerance |
Returns
System.Boolean
ToString
public override string ToString()
Returns
System.String
Overrides
System.Object.ToString
ICloneable.Clone
object ICloneable.Clone()
Returns
System.Object