Class BasePoint
Abstract class representing a generic vector entity. All vector related entities must inherit from it.
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public abstract class BasePoint : object
Constructors
| Improve this Doc View SourceBasePoint()
Initializes a new instance of the BasePoint class.
Declaration
protected BasePoint()
BasePoint(BasePoint)
Initializes a new instance of the BasePoint class.
Declaration
protected BasePoint(BasePoint point)
Parameters
Type | Name | Description |
---|---|---|
BasePoint | point | Point to copy coordinates from. |
BasePoint(Double, Double, Double)
Initializes a new instance of the BasePoint class by cartesian coordinates.
Declaration
protected BasePoint(double xCoord, double yCoord, double zCoord)
Parameters
Type | Name | Description |
---|---|---|
System.Double | xCoord | X coordinate. |
System.Double | yCoord | Y coordinate. |
System.Double | zCoord | Z coordinate. |
Properties
| Improve this Doc View SourceIsUnset
Gets or sets a value indicating whether the current point is unset.
Declaration
public bool IsUnset { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if Unset. |
X
Gets or sets x Coordinate.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Gets or sets y Coordinate.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Z
Gets or sets z Coordinate.
Declaration
public double Z { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceAdd(BasePoint)
Add a point to this point.
Declaration
public void Add(BasePoint point)
Parameters
Type | Name | Description |
---|---|---|
BasePoint | point | Point to add. |
Divide(Double)
Divide this point by a number.
Declaration
public void Divide(double scalar)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scalar | Number to divide by. |
Equals(Object)
Performs a deep clone of the point.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a copy of this BasePoint instance. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Multiply(Double)
Multiply this point by a number.
Declaration
public void Multiply(double scalar)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scalar | Number to multiply by. |
Negate()
Negates this point.
Declaration
public void Negate()
Substract(BasePoint)
Substract a point from this one.
Declaration
public void Substract(BasePoint point)
Parameters
Type | Name | Description |
---|---|---|
BasePoint | point | Point to substract. |
ToArray()
Converts a point to an array of numbers.
Declaration
public double[] ToArray()
Returns
Type | Description |
---|---|
System.Double[] | Array with cartesian coordinates of point. |
ToString()
Returns the string representation of this point.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |