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

Vector4 class is used to store vector and contain method to handle the vector
显示文件 Open project: AMEE/revit

Public Methods

Method Description
CrossProduct ( Vector4 v ) : Vector4

cross multiply vector

CrossProduct ( Vector4 va, Vector4 vb ) : Vector4

cross multiply two vectors

DotProduct ( Vector4 v ) : float

dot multiply this vector with another 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, transform Autodesk.Revit.DB.XYZ to vector

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

constructor

operator ( ) : Vector4

get vector multiplied by a floating type value

Method Details

CrossProduct() public method

cross multiply vector
public CrossProduct ( Vector4 v ) : Vector4
v Vector4 second vector
return Vector4

CrossProduct() public static method

cross multiply two vectors
public static CrossProduct ( Vector4 va, Vector4 vb ) : Vector4
va Vector4 first vector
vb Vector4 second vector
return Vector4

DotProduct() public method

dot multiply this vector with another vector
public DotProduct ( Vector4 v ) : float
v Vector4 vector
return float

DotProduct() public static method

dot multiply two vectors
public static DotProduct ( Vector4 va, Vector4 vb ) : float
va Vector4 first vector
vb Vector4 second vector
return float

Length() public method

calculate the length of vector
public Length ( ) : float
return float

Normalize() public method

get unit vector
public Normalize ( ) : void
return void

Vector4() public method

constructor, transform Autodesk.Revit.DB.XYZ to vector
public Vector4 ( Autodesk v ) : System
v Autodesk
return System

Vector4() public method

constructor
public Vector4 ( float x, float y, float z ) : System
x float
y float
z float
return System

operator() public static method

get vector multiplied by a floating type value
public static operator ( ) : Vector4
return Vector4