Class Basis
Class defining a basis in three-dimensional euclidean space.
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public class Basis : IEquatable<Basis>
Remarks
Constructors
| Improve this Doc View SourceBasis(Basis)
Declaration
public Basis(Basis basis)
Parameters
Type | Name | Description |
---|---|---|
Basis | basis | Basis to copy. |
Remarks
| Improve this Doc View SourceBasis(Vector, Vector, Vector)
Initialises a new instance of the Basis class by defining its three linearly independent axes.
Declaration
public Basis(Vector xAxis, Vector yAxis, Vector zAxis)
Parameters
Type | Name | Description |
---|---|---|
Vector | xAxis | First axis of the Basis. |
Vector | yAxis | Second axis of the Basis. |
Vector | zAxis | Third axis of the Basis. |
Remarks
| Improve this Doc View SourceBasis(Vector[])
Initialises a new instance of the Basis class by defining its axes.
Declaration
public Basis(Vector[] axes)
Parameters
Type | Name | Description |
---|---|---|
Vector[] | axes | Set of axes. |
Remarks
Properties
| Improve this Doc View SourceDimension
Gets the number of axes of the current Basis.
Declaration
public int Dimension { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
| Improve this Doc View SourceItem[Int32]
Gets the axis of the current Basis at the given index.
Declaration
public Vector this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the axis to retrieve. |
Property Value
Type | Description |
---|---|
Vector | The axis at the given index. |
Remarks
| Improve this Doc View SourceXAxis
Gets the first axis of the current Basis.
Declaration
public Vector XAxis { get; }
Property Value
Type | Description |
---|---|
Vector |
Remarks
| Improve this Doc View SourceYAxis
Gets the second axis of the current Basis.
Declaration
public Vector YAxis { get; }
Property Value
Type | Description |
---|---|
Vector |
Remarks
| Improve this Doc View SourceZAxis
Gets the third axis of the current Basis.
Declaration
public Vector ZAxis { get; }
Property Value
Type | Description |
---|---|
Vector |
Remarks
Methods
| Improve this Doc View SourceEquals(Basis)
Declaration
public bool Equals(Basis other)
Parameters
Type | Name | Description |
---|---|---|
Basis | other | Basis to compare with. |
Returns
Type | Description |
---|---|
Boolean | true if the two Basis are equal, false otherwise. |
Remarks
| Improve this Doc View SourceEquals(Object)
Class defining a basis in three-dimensional euclidean space.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Remarks
| Improve this Doc View SourceGetHashCode()
Class defining a basis in three-dimensional euclidean space.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Remarks
| Improve this Doc View SourceIsOrthogonal(Basis)
Evaluates whether a the axis of a basis are orthogonal to one another.
Declaration
public static bool IsOrthogonal(Basis basis)
Parameters
Type | Name | Description |
---|---|---|
Basis | basis | Basis to evaluate. |
Returns
Type | Description |
---|---|
Boolean | true if the axes are orthogonal, false otherwise. |
Remarks
| Improve this Doc View SourceToString()
Class defining a basis in three-dimensional euclidean space.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |