Table of Contents

Class gPoint

Namespace
VectorDraw.Geometry
Assembly
VectorDraw.Geometry.dll

Implements the gPoint object.

public class gPoint : IVDSerialise, IFromString, ICloneable, IDisposable, IComparer<gPoint>
Inheritance
gPoint
Implements
Derived
Inherited Members

Constructors

gPoint()

Initializes a gPoint object (0.0,0.0,0.0).

gPoint(double)

Initializes a gPoint object (X,0.0,0.0).

gPoint(double, double)

Initializes a gPoint object (X,Y,0.0).

gPoint(double, double, double)

Initializes a gPoint object (X,Y,Z).

gPoint(gPoint)

Initializes a gPoint object at the coordinates of the pt parameter.

gPoint(gPoint, double)

Initializes a gPoint object.

Properties

this[int]

Get/Set the value at a specified index.

Point2d

returns a new 2d point with Z value = 0.0

x

The x value of the point.

y

The y value of the point.

z

The z value of the point.

Methods

AreEqual(double, double, double, double)

Checks if the passed gPoint is equal to this gPoint

AreEqual(gPoint)

Check if the passed gPoint has equal x,y,z values with this object with default equality VD_ZERO8.

AreEqual(gPoint, double)

Check if the passed gPoint has equal x,y,z values with this object.

Clone()

Returns a new created gPoint object as clone to this one.

Compare(gPoint, gPoint)

Compares two gPoint and returns a value indicating whether one is less than, equal to, or greater than the other depend of their distance from (0,0,0).

CopyFrom(gPoint)

Copies the x,y,z values from the passed object to this gPoint object.

DeSerialize(DeSerializer, string, object)

This Function is called foreach field name of the gPoint object when opening in vdml format.

Direction(gPoint)

Get the direction between this and a given point.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Distance2D(gPoint)

Returns the distance between this gPoint and the parameter.The z is not taken into consideration.

Distance2D(gPoint, gPoint)

Calculates the 2D distance between two gPoints.

Distance3D(gPoint)

Returns the distance between this gPoint and the parameter.

Distance3D(gPoint, gPoint)

Calculates the distance between two gPoints.

DistanceFromLine(gPoint, gPoint)

Calculates the distance between a given line and this point.

DistanceSquared(gPoint)

Returns the square of the distance between two gPoints.

DistanceSquared(gPoint, gPoint)

Calculate the squared distance between two gPoints.

Equals(object)

Checks if the parameter object is equal to this object.

Equals(gPoint)

Checks if the parameter gPoint object is equal to this object.

FromString(string)

Sets the x,y,z values of the point from a given string.

GetAngle(gPoint)

Get the angle between the given point and this in radians.

GetHashCode()

Returns a 32-bit signed integer hash code for this object instance.

MidPoint(gPoint, gPoint)

Calculates the midpoint between two given gPoints.

Offset(double, double, double)

Offset x,y,z values at given values

Polar(double, double)

Calculates and returns a gPoint at a given distance and angle from this point.

Polar(gPoint, double, double)

Calculates and returns a gpoint located at a given distance and angle from a given point.

Serialize(Serializer)

This Function is called when saving the gPoint object to vdml format.

SetOffsetFrom(gPoint, Vector, double)

Sets the x,y,z values of this point to a gPoint located at a given distance and a given direction from the origin point.

SetValue(double, double, double)

Set the x,y,z values of this object using the passed values.

ToString()

Gets a System.String that represents the coordinates of the gPoint Object.

ToString(string)

Gets a System.String that represents the coordinates of the gPoint Object using the format parameter for visualization.

ToString(Serializer)

Gets a System.String that represents the coordinates of the gPoint Object using the format parameter for visualization.

Translate(gPoint, double, double, double)

Calculates and returns a point translated using x,y,z distance from a given point.

Operators

operator +(gPoint, gPoint)

Implements the + operator for two gPoints.

operator /(gPoint, double)

Implements the / operator for two gPoints.

operator ==(gPoint, gPoint)

Implements the == operator for two gPoints.

operator !=(gPoint, gPoint)

Implements the != operator for two gPoints.

operator %(gPoint, gPoint)

computes the remainder after dividing its first point x,y,z values by its second point x,y,z values

operator *(double, gPoint)

Implements the * operator for a gPoint with a double value.

operator *(gPoint, double)

Implements the * operator for two gPoints.

operator -(gPoint, gPoint)

Implements the - operator for two gPoints.