Struct IfcVector3
- Namespace
- IfcIO.Geometry
- Assembly
- IfcIO.dll
A 3D coordinate vector with double precision.
public readonly record struct IfcVector3 : IEquatable<IfcVector3>Implements
Inherited Members
Constructors
IfcVector3(double, double, double)
A 3D coordinate vector with double precision.
public IfcVector3(double X, double Y, double Z)Parameters
Fields
UnitX
public static readonly IfcVector3 UnitXField Value
UnitY
public static readonly IfcVector3 UnitYField Value
UnitZ
public static readonly IfcVector3 UnitZField Value
Zero
public static readonly IfcVector3 ZeroField Value
Properties
Length
public double Length { get; }Property Value
X
public double X { get; init; }Property Value
Y
public double Y { get; init; }Property Value
Z
public double Z { get; init; }Property Value
Methods
Cross(IfcVector3, IfcVector3)
public static IfcVector3 Cross(IfcVector3 a, IfcVector3 b)Parameters
aIfcVector3bIfcVector3
Returns
Dot(IfcVector3, IfcVector3)
public static double Dot(IfcVector3 a, IfcVector3 b)Parameters
aIfcVector3bIfcVector3
Returns
Normalized()
public IfcVector3 Normalized()Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()Returns
- string
-
The fully qualified type name.
Operators
operator +(IfcVector3, IfcVector3)
public static IfcVector3 operator +(IfcVector3 a, IfcVector3 b)Parameters
aIfcVector3bIfcVector3
Returns
operator *(IfcVector3, double)
public static IfcVector3 operator *(IfcVector3 a, double scalar)Parameters
aIfcVector3scalardouble
Returns
operator *(double, IfcVector3)
public static IfcVector3 operator *(double scalar, IfcVector3 a)Parameters
scalardoubleaIfcVector3
Returns
operator -(IfcVector3, IfcVector3)
public static IfcVector3 operator -(IfcVector3 a, IfcVector3 b)Parameters
aIfcVector3bIfcVector3
Returns
operator -(IfcVector3)
public static IfcVector3 operator -(IfcVector3 a)