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

Vector4 class use to store vector and contain method to handle the vector
Show file Open project: AMEE/revit

Public Methods

Method 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 method

get normal vector of two vector
public CrossProduct ( Vector4 v ) : Vector4
v Vector4 second vector
return Vector4

CrossProduct() public static method

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

DotProduct() public method

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

DotProduct() public static method

Dot multiply two vector
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

Copy constructor
public Vector4 ( Vector4 v ) : System
v Vector4
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 multiply by an double value
public static operator ( ) : Vector4
return Vector4