C# Class Revit.SDK.Samples.ObjectViewer.CS.Vector

Point class use to store point coordinate value and get the value via (x, y ,z)property
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

estimate whether two are equal

GetAngleOf2Vectors ( Vector lhs, Vector rhs, bool acuteAngleDesired ) : double

get angle of two vector

GetHashCode ( ) : int

Get HashCode

GetLength ( ) : double

Get Length of vector

GetNormal ( ) : Vector

get Normal by vector

MultiCross3X3Matrix ( Vector m1, Vector m2 ) : Revit.SDK.Samples.ObjectViewer.CS.Vector[]

Cross multiply 2 3*3 Matrix

Vector ( Vector rhs ) : System

copy constructor

Vector ( double x, double y, double z ) : System

constructor

operator ( ) : Vector

get normal vector of two vector

operator ( ) : bool

estimate whether two are unequal

operator ( ) : double

get cross vector of two vector

this ( int index ) : double

Property to get x, y, z coordinate bu index 1, 2, 3

Private Methods

Method Description
IsEqual ( Vector lhs, Vector rhs ) : bool

estimate whether two vector are equal

Method Details

Equals() public method

estimate whether two are equal
public Equals ( object obj ) : bool
obj object object which compare with
return bool

GetAngleOf2Vectors() public static method

get angle of two vector
public static GetAngleOf2Vectors ( Vector lhs, Vector rhs, bool acuteAngleDesired ) : double
lhs Vector first vector
rhs Vector second vector
acuteAngleDesired bool /// indicate whether get the acute angle of two angles between two vectors ///
return double

GetHashCode() public method

Get HashCode
public GetHashCode ( ) : int
return int

GetLength() public method

Get Length of vector
public GetLength ( ) : double
return double

GetNormal() public method

get Normal by vector
public GetNormal ( ) : Vector
return Vector

MultiCross3X3Matrix() public static method

Cross multiply 2 3*3 Matrix
public static MultiCross3X3Matrix ( Vector m1, Vector m2 ) : Revit.SDK.Samples.ObjectViewer.CS.Vector[]
m1 Vector
m2 Vector
return Revit.SDK.Samples.ObjectViewer.CS.Vector[]

Vector() public method

copy constructor
public Vector ( Vector rhs ) : System
rhs Vector
return System

Vector() public method

constructor
public Vector ( double x, double y, double z ) : System
x double x coordinate of point
y double y coordinate of point
z double z coordinate of point
return System

operator() public static method

get normal vector of two vector
public static operator ( ) : Vector
return Vector

operator() public static method

estimate whether two are unequal
public static operator ( ) : bool
return bool

operator() public static method

get cross vector of two vector
public static operator ( ) : double
return double

this() public method

Property to get x, y, z coordinate bu index 1, 2, 3
public this ( int index ) : double
index int
return double