Grx.Mgd 1.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
Gssoft.Gscad.Geometry.Vector3d Struct Reference

Public Member Functions

 Vector3d (Vector3d vector3d)
 
 Vector3d (double x, double y, double z)
 
 Vector3d (double[] xyz)
 
 Vector3d (PlanarEntity plane, Vector2d vector2d)
 
override bool Equals (object obj)
 
bool IsCodirectionalTo (Vector3d vector, Tolerance tolerance)
 
bool IsCodirectionalTo (Vector3d vector)
 
bool IsEqualTo (Vector3d vector, Tolerance tolerance)
 
bool IsEqualTo (Vector3d vector)
 
bool IsParallelTo (Vector3d vector, Tolerance tolerance)
 
bool IsParallelTo (Vector3d vector)
 
bool IsPerpendicularTo (Vector3d vector, Tolerance tolerance)
 
bool IsPerpendicularTo (Vector3d vector)
 
bool IsUnitLength ()
 
bool IsUnitLength (Tolerance tolerance)
 
bool IsZeroLength ()
 
bool IsZeroLength (Tolerance tolerance)
 
Vector2d Convert2d (PlanarEntity plane)
 
Vector3d Add (Vector3d v)
 返回相加后的结果,源对象值不变
 
Vector3d CrossProduct (Vector3d vector)
 
Vector3d DivideBy (double value)
 
Vector3d GetNormal ()
 
Vector3d GetNormal (Tolerance tolerance)
 
Vector3d GetPerpendicularVector ()
 
Vector3d Mirror (Vector3d normalToPlane)
 
Vector3d MultiplyBy (double value)
 
Vector3d Negate ()
 
Vector3d OrthoProjectTo (Vector3d planeNormal)
 
Vector3d ProjectTo (Vector3d planeNormal, Vector3d projectDirection)
 
Vector3d RotateBy (double angle, Vector3d axis)
 
Vector3d Subtract (Vector3d v)
 
Vector3d TransformBy (Matrix3d leftSide)
 
override int GetHashCode ()
 
override string ToString ()
 
double AngleOnPlane (PlanarEntity plane)
 
double DotProduct (Vector3d v)
 
double GetAngleTo (Vector3d vector, Vector3d referenceVector)
 
double GetAngleTo (Vector3d vector)
 
double[] ToArray ()
 
string ToString (IFormatProvider provider)
 
string ToString (string format, IFormatProvider provider)
 

Static Public Member Functions

static bool operator!= (Vector3d a, Vector3d b)
 
static bool operator== (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3d a)
 
static Vector3d operator- (Vector3d a, Vector3d b)
 
static Vector3d operator* (double factor, Vector3d a)
 
static Vector3d operator* (Matrix3d a, Vector3d b)
 
static Vector3d operator* (Vector3d a, double factor)
 
static Vector3d operator/ (Vector3d a, double factor)
 
static Vector3d operator+ (Vector3d a, Vector3d b)
 

Properties

static Vector3d XAxis [get]
 
static Vector3d YAxis [get]
 
static Vector3d ZAxis [get]
 
double Length [get]
 
double LengthSqrd [get]
 
double this[int index] [get]
 
double X [get]
 
double Y [get]
 
double Z [get]
 
int LargestElement [get]
 

Member Function Documentation

◆ Add()

Vector3d Gssoft.Gscad.Geometry.Vector3d.Add ( Vector3d  v)

返回相加后的结果,源对象值不变

Parameters
v
Returns