C# Класс SolidworksAddinFramework.Geometry.Vector3Extensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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