Class Vector
- Namespace
- VectorDraw.Geometry
- Assembly
- VectorDraw.Geometry.dll
Implements the Vector object.
public class Vector : gPoint, IVDSerialise, IFromString, ICloneable, IDisposable, IComparer<gPoint>
- Inheritance
-
Vector
- Implements
- Inherited Members
Constructors
- Vector()
Initializes a 0.0,0.0,1.0 Vector object.
- Vector(double)
Initializes the Vector object with a given direction angle starting from 0.0,0.0,0.0 point.
- Vector(double, double, double)
Initializes the object with the passed x,y,z values.
- Vector(Vector)
Initializes the object with a passed Vector object.
- Vector(gPoint)
Initializes the Vector with a given gPoint.
- Vector(gPoint, gPoint)
Initializes the Vector object with an origin and a target point.
Fields
- v001
Initializes the object with a 0.0,0.0,1.0 vector.
Properties
- Length
The length of the Vector.
Methods
- Angle2DDirection()
Returns the angle of the Vector in radians.
- CalculateExtrution(gPoint, gPoint, gPoint)
Calculates the Vector of a plane consisted of three given points.
- CalculateFrom2Points(gPoint, gPoint)
Calculate this Vector from two given points.
- CalculateFrom3Points(gPoint, gPoint, gPoint)
Calculate a Vector from three given points, whitch is the bisector of the p->p2 and p2->p3 vectors.
- CalculateNormal3P(gPoint, gPoint, gPoint, out Vector)
Calculates the Vector of a plane consisted of three given points.
- Clone()
Returns a new created Vector object as clone to this one.
- CreateExtrusion(gPoint, gPoint)
Calculates a Vector from two given points.
- CreateExtrusion(gPoint, gPoint, gPoint)
Calculate a Vector from three given points, whitch is the bisector of the p->p2 and p2->p3 vectors.
- Cross(Vector)
Changes this Vector regarding the crossing operation with another Vector.
- CrossProduct(Vector, Vector)
Calculates and returns a Vector produced by crossing two other Vectors.
- Dot(Vector)
Calculates the sum of the squared values(x,y,z) of two Vectors.
- Equals(double, double, double, double)
Checks the x,y,z values of the Vector object to be equality equal with the passed parameters.
- Equals(Vector)
Returns true if this vector has equal value to another vector.
- Equals(Vector, double)
Returns true if this vector has equal value to another vector taken into consideration also the equality value.
- GreaterThan(Vector)
Checks the x,y,z values of this object if they are greater from another object's values.
- Is001()
Checks if this Vector is equal to a 0.0,0.0,1.0 Vector.
- NormalVector(gPoint, gPoint, gPoint)
Calculates the normal Vector of a plane consisted by three points.
- NormalVector(gPoint, gPoint, gPoint, ref Vector)
Calculates the normal Vector of a plane consisted by three points.
- NormalVector(gPoint, gPoint, gPoint, gPoint)
Calculates the normal vector of a plane consisting of four given points.
- NormalVector(gPoint, gPoint, gPoint, gPoint, ref Vector)
Calculates the normal Vector of a plane consisted by four points.
- NormalVector4(gPoint, gPoint, gPoint, gPoint)
Calculate four Vectors for each plane that create three of the four given points.
- Normalize()
Convert this Vector to one unit length.
- OverlapVertex(gPoint, gPoint, gPoint, gPoint)
Returns the one(1) base index of overlap vertex for a face that consists from four(4) points.
- SquaredLenght()
Calculates the sum of the squared values(x,y,z) of this Vector.
- ToNormalized()
returns a new Vector object with the same direction as this Vector but with unit length.
- isUnitLength()
Checks if this Vector is unit length.
- lessThan(Vector)
Checks the x,y,z values of this object if they are less than another object's values.
Operators
- operator +(Vector, Vector)
Implements the + operator between two Vector objects.
- operator /(Vector, double)
Implements the / operator for a vector and a double value.
- operator *(Vector, double)
Implements the * operator between a Vector object and a double value.
- operator -(Vector, Vector)
Implements the - operator for two Vector objects.