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

Vector4 class used 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 vectors

CrossProduct ( Vector4 va, Vector4 vb ) : Vector4

get normal vector of two vectors

DotProduct ( Vector4 v ) : float

dot multiply vector

DotProduct ( Vector4 va, Vector4 vb ) : float

dot multiply two vectors

Length ( ) : float

calculate the length of vector

Normalize ( ) : void

get unit vector

Vector4 ( Autodesk v ) : System

constructor, transfer Autodesk.Revit.DB.XYZ to vector

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

constructor

operator ( ) : Vector4

multiplies a vector by a floating type value

Method Details

CrossProduct() public méthode

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

CrossProduct() public static méthode

get normal vector of two vectors
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 the result vector
Résultat float

DotProduct() public static méthode

dot multiply two vectors
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, transfer Autodesk.Revit.DB.XYZ to vector
public Vector4 ( Autodesk v ) : System
v Autodesk Autodesk.Revit.DB.XYZ structure which needs to be transferred
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

multiplies a vector by a floating type value
public static operator ( ) : Vector4
Résultat Vector4