C# Class Revit.SDK.Samples.NewOpenings.CS.Vector4

Vector4 class use to store vector and contain method to handle the vector
Afficher le fichier Open project: AMEE/revit

Méthodes publiques

Méthode Description
CrossProduct ( Vector4 v ) : Vector4

get normal vector of two vector

CrossProduct ( Vector4 va, Vector4 vb ) : Vector4

Get normal vector of two vector

DotProduct ( Vector4 v ) : float

dot multiply vector

DotProduct ( Vector4 va, Vector4 vb ) : float

Dot multiply two vector

Length ( ) : float

Calculate the length of vector

Normalize ( ) : void

Get unit vector

Vector4 ( Autodesk v ) : System

Constructor, transform Autodesk.Revit.DB.XYZ to vector

Vector4 ( Vector4 v ) : System

Copy constructor

Vector4 ( float x, float y, float z ) : System

Constructor

operator ( ) : Vector4

Get vector multiply by an double value

Method Details

CrossProduct() public méthode

get normal vector of two vector
public CrossProduct ( Vector4 v ) : Vector4
v Vector4 second vector
Résultat Vector4

CrossProduct() public static méthode

Get normal vector of two vector
public static CrossProduct ( Vector4 va, Vector4 vb ) : Vector4
va Vector4 First vector
vb Vector4 Second vector
Résultat Vector4

DotProduct() public méthode

dot multiply vector
public DotProduct ( Vector4 v ) : float
v Vector4 vector
Résultat float

DotProduct() public static méthode

Dot multiply two vector
public static DotProduct ( Vector4 va, Vector4 vb ) : float
va Vector4 First vector
vb Vector4 Second vector
Résultat float

Length() public méthode

Calculate the length of vector
public Length ( ) : float
Résultat float

Normalize() public méthode

Get unit vector
public Normalize ( ) : void
Résultat void

Vector4() public méthode

Constructor, transform Autodesk.Revit.DB.XYZ to vector
public Vector4 ( Autodesk v ) : System
v Autodesk
Résultat System

Vector4() public méthode

Copy constructor
public Vector4 ( Vector4 v ) : System
v Vector4
Résultat System

Vector4() public méthode

Constructor
public Vector4 ( float x, float y, float z ) : System
x float
y float
z float
Résultat System

operator() public static méthode

Get vector multiply by an double value
public static operator ( ) : Vector4
Résultat Vector4