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