DVector3d
This is created from an Origin and Target. Where just a source is given the origin is assumed as (0, 0 ,0).
DVector3d ptD3d; r3d ptD3d = new DVector3d(); DVector3d ptD3d = new DVector3d(ref DPoint2d Source); DVector3d ptD3d = new DVector3d(ref DVector2d Source); DVector3d ptD3d = new DVector3d(ref DPoint3d Source); d ptD3d = new DVector3d(ref DVector2d Source); DVector3d ptD3d = new DVector3d(double ax, double ay); DVector3d ptD3d = new DVector3d(double ax, double ay, double az); DVector3d ptD3d = new DVector3d(ref Origin DPoint2d, ref Target DPoint2d) DVector3d ptD3d = new DVector3d(ref Origin DPoint3d, ref Target DPoint3d) DVector3d ptD3d = new DVector3d(ref Origin DVector3d, ref Target DVector3d)
Dot Product a.b = |a||b|cosθ
DotProduct(ref DVector3d Vector2) DotProduct(double ax, double ay, double az)
Cross Product
CrossProduct(ref DVector3d Vector2) CrossProduct(ref DVector3d Vector1, ref DVector3d Vector2) CrossProductToPoints(ref DPoint3d Origin, ref DPoint3d Target1, ref DPoint3d Target2)
Magnitude (this is the length of a vector)
Magnitude
Negate
Negate(ref DVector3d Vector) NegateInPlace()
Normalize
malize(ref DVector3d Vector) NormalizeInPlace()
Scale
Scale(ref DVector3d Vector, double length) ScaleInPlace(double scale) ScaleToLength(double length) ScaleToLength(ref DVector3d Vector, double length)