C# 클래스 SolidworksAddinFramework.Geometry.Vector3Extensions

파일 보기 프로젝트 열기: Weingartner/SolidworksAddinFramework 1 사용 예제들

공개 메소드들

메소드 설명
AngleBetweenVectors ( this v0, System.Vector3 v1 ) : double
Dot ( this a, System.Vector3 other ) : double
Equals ( this a, System.Vector3 other, double tol ) : bool
GLNormal3 ( this v ) : void
GLVertex3 ( this v ) : void
Orientation ( this a, System.Vector3 b, System.Vector3 c ) : int

Returns 1 for right handed vectors and -1 for left handed

Orthogonal ( this v ) : System.Vector3

Returns an orthoganl vector. This is robust From http://lolengine.net/blog/2013/09/21/picking-orthogonal-vector-combing-coconuts

ProjectOn ( this point, System.Vector3 axis ) : System.Vector3
ProjectOnUnit ( this point, System.Vector3 axis ) : System.Vector3
SignedAngle ( this v0, System.Vector2 v1 ) : double

returns the signed angle between the two vectors

To2D ( this v ) : System.Vector2

Drops the Z value. Effectively a projection on to the XY plane

To3D ( this v ) : System.Vector3

Converts to Vector3 and sets the z component to 0.0

ToDoubles ( this v ) : double[]
ToEuclid ( this v ) : System.Vector3

Performs the perspective transformation to turn a 4D homogeneos coordinate into Euclidian coordinates. Useful for dealing with b-splines

ToHomogenous ( this v, double w ) : System.Vector4

Converts a euclidian vector into homogeneous space. Use ToEuclid to get it back again. Useful in dealing with b-splines

ToSWVector ( this v, IMathUtility m = null ) : MathVector
ToSingles ( this v ) : double[]
ToSwMathPoint ( this v ) : MathPoint
ToVector3 ( this value ) : System.Vector3
ToVector3 ( this value ) : System.Vector3
ToVector3D ( this values ) : System.Vector3
Unit ( this v ) : System.Vector3
WithZ ( this v, double value ) : System.Vector3
XComponent ( this v ) : System.Vector3
YComponent ( this v ) : System.Vector3
ZComponent ( this v ) : System.Vector3

메소드 상세

AngleBetweenVectors() 공개 정적인 메소드

public static AngleBetweenVectors ( this v0, System.Vector3 v1 ) : double
v0 this
v1 System.Vector3
리턴 double

Dot() 공개 정적인 메소드

public static Dot ( this a, System.Vector3 other ) : double
a this
other System.Vector3
리턴 double

Equals() 공개 정적인 메소드

public static Equals ( this a, System.Vector3 other, double tol ) : bool
a this
other System.Vector3
tol double
리턴 bool

GLNormal3() 공개 정적인 메소드

public static GLNormal3 ( this v ) : void
v this
리턴 void

GLVertex3() 공개 정적인 메소드

public static GLVertex3 ( this v ) : void
v this
리턴 void

Orientation() 공개 정적인 메소드

Returns 1 for right handed vectors and -1 for left handed
public static Orientation ( this a, System.Vector3 b, System.Vector3 c ) : int
a this
b System.Vector3
c System.Vector3
리턴 int

Orthogonal() 공개 정적인 메소드

Returns an orthoganl vector. This is robust From http://lolengine.net/blog/2013/09/21/picking-orthogonal-vector-combing-coconuts
public static Orthogonal ( this v ) : System.Vector3
v this
리턴 System.Vector3

ProjectOn() 공개 정적인 메소드

public static ProjectOn ( this point, System.Vector3 axis ) : System.Vector3
point this
axis System.Vector3
리턴 System.Vector3

ProjectOnUnit() 공개 정적인 메소드

public static ProjectOnUnit ( this point, System.Vector3 axis ) : System.Vector3
point this
axis System.Vector3
리턴 System.Vector3

SignedAngle() 공개 정적인 메소드

returns the signed angle between the two vectors
public static SignedAngle ( this v0, System.Vector2 v1 ) : double
v0 this
v1 System.Vector2
리턴 double

To2D() 공개 정적인 메소드

Drops the Z value. Effectively a projection on to the XY plane
public static To2D ( this v ) : System.Vector2
v this
리턴 System.Vector2

To3D() 공개 정적인 메소드

Converts to Vector3 and sets the z component to 0.0
public static To3D ( this v ) : System.Vector3
v this
리턴 System.Vector3

ToDoubles() 공개 정적인 메소드

public static ToDoubles ( this v ) : double[]
v this
리턴 double[]

ToEuclid() 공개 정적인 메소드

Performs the perspective transformation to turn a 4D homogeneos coordinate into Euclidian coordinates. Useful for dealing with b-splines
public static ToEuclid ( this v ) : System.Vector3
v this
리턴 System.Vector3

ToHomogenous() 공개 정적인 메소드

Converts a euclidian vector into homogeneous space. Use ToEuclid to get it back again. Useful in dealing with b-splines
public static ToHomogenous ( this v, double w ) : System.Vector4
v this
w double
리턴 System.Vector4

ToSWVector() 공개 정적인 메소드

public static ToSWVector ( this v, IMathUtility m = null ) : MathVector
v this
m IMathUtility
리턴 MathVector

ToSingles() 공개 정적인 메소드

public static ToSingles ( this v ) : double[]
v this
리턴 double[]

ToSwMathPoint() 공개 정적인 메소드

public static ToSwMathPoint ( this v ) : MathPoint
v this
리턴 MathPoint

ToVector3() 공개 정적인 메소드

public static ToVector3 ( this value ) : System.Vector3
value this
리턴 System.Vector3

ToVector3() 공개 정적인 메소드

public static ToVector3 ( this value ) : System.Vector3
value this
리턴 System.Vector3

ToVector3D() 공개 정적인 메소드

public static ToVector3D ( this values ) : System.Vector3
values this
리턴 System.Vector3

Unit() 공개 정적인 메소드

public static Unit ( this v ) : System.Vector3
v this
리턴 System.Vector3

WithZ() 공개 정적인 메소드

public static WithZ ( this v, double value ) : System.Vector3
v this
value double
리턴 System.Vector3

XComponent() 공개 정적인 메소드

public static XComponent ( this v ) : System.Vector3
v this
리턴 System.Vector3

YComponent() 공개 정적인 메소드

public static YComponent ( this v ) : System.Vector3
v this
리턴 System.Vector3

ZComponent() 공개 정적인 메소드

public static ZComponent ( this v ) : System.Vector3
v this
리턴 System.Vector3