C# 클래스 Revit.SDK.Samples.Truss.CS.Vector4

Vector4 is a homogeneous coordinate class used to store vector and contain method to handle the vector
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
CrossProduct ( Vector4 v ) : Vector4

get normal vector of plane contains two vectors

CrossProduct ( Vector4 va, Vector4 vb ) : Vector4

get normal vector of two vectors

DotProduct ( Vector4 v ) : double

dot multiply vector

DotProduct ( Vector4 va, Vector4 vb ) : double

dot multiply two vectors

Length ( ) : double

calculate the length of vector

Normalize ( ) : void

get unit vector

Vector4 ( Autodesk v ) : System

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

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

constructor

operator ( ) : Vector4

multiplies a vector by a doubling type value

메소드 상세

CrossProduct() 공개 메소드

get normal vector of plane contains two vectors
public CrossProduct ( Vector4 v ) : Vector4
v Vector4 second vector
리턴 Vector4

CrossProduct() 공개 정적인 메소드

get normal vector of two vectors
public static CrossProduct ( Vector4 va, Vector4 vb ) : Vector4
va Vector4 first vector
vb Vector4 second vector
리턴 Vector4

DotProduct() 공개 메소드

dot multiply vector
public DotProduct ( Vector4 v ) : double
v Vector4 the result vector
리턴 double

DotProduct() 공개 정적인 메소드

dot multiply two vectors
public static DotProduct ( Vector4 va, Vector4 vb ) : double
va Vector4 first vector
vb Vector4 second vector
리턴 double

Length() 공개 메소드

calculate the length of vector
public Length ( ) : double
리턴 double

Normalize() 공개 메소드

get unit vector
public Normalize ( ) : void
리턴 void

Vector4() 공개 메소드

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
리턴 System

Vector4() 공개 메소드

constructor
public Vector4 ( double x, double y, double z ) : System
x double
y double
z double
리턴 System

operator() 공개 정적인 메소드

multiplies a vector by a doubling type value
public static operator ( ) : Vector4
리턴 Vector4