Table of Contents

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

X double
Y double
Z double

Fields

UnitX

public static readonly IfcVector3 UnitX

Field Value

IfcVector3

UnitY

public static readonly IfcVector3 UnitY

Field Value

IfcVector3

UnitZ

public static readonly IfcVector3 UnitZ

Field Value

IfcVector3

Zero

public static readonly IfcVector3 Zero

Field Value

IfcVector3

Properties

Length

public double Length { get; }

Property Value

double

X

public double X { get; init; }

Property Value

double

Y

public double Y { get; init; }

Property Value

double

Z

public double Z { get; init; }

Property Value

double

Methods

Cross(IfcVector3, IfcVector3)

public static IfcVector3 Cross(IfcVector3 a, IfcVector3 b)

Parameters

a IfcVector3
b IfcVector3

Returns

IfcVector3

Dot(IfcVector3, IfcVector3)

public static double Dot(IfcVector3 a, IfcVector3 b)

Parameters

a IfcVector3
b IfcVector3

Returns

double

Normalized()

public IfcVector3 Normalized()

Returns

IfcVector3

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

a IfcVector3
b IfcVector3

Returns

IfcVector3

operator *(IfcVector3, double)

public static IfcVector3 operator *(IfcVector3 a, double scalar)

Parameters

a IfcVector3
scalar double

Returns

IfcVector3

operator *(double, IfcVector3)

public static IfcVector3 operator *(double scalar, IfcVector3 a)

Parameters

scalar double
a IfcVector3

Returns

IfcVector3

operator -(IfcVector3, IfcVector3)

public static IfcVector3 operator -(IfcVector3 a, IfcVector3 b)

Parameters

a IfcVector3
b IfcVector3

Returns

IfcVector3

operator -(IfcVector3)

public static IfcVector3 operator -(IfcVector3 a)

Parameters

a IfcVector3

Returns

IfcVector3