• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class BasePoint

Abstract class representing a generic vector entity. All vector related entities must inherit from it.

Inheritance
System.Object
BasePoint
Point3d
Point4d
Vector3d
PointCloudMember
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public abstract class BasePoint : object

Constructors

| Improve this Doc View Source

BasePoint()

Initializes a new instance of the BasePoint class.

Declaration
protected BasePoint()
| Improve this Doc View Source

BasePoint(BasePoint)

Initializes a new instance of the BasePoint class.

Declaration
protected BasePoint(BasePoint point)
Parameters
Type Name Description
BasePoint point

Point to copy coordinates from.

| Improve this Doc View Source

BasePoint(Double, Double, Double)

Initializes a new instance of the BasePoint class by cartesian coordinates.

Declaration
protected BasePoint(double xCoord, double yCoord, double zCoord)
Parameters
Type Name Description
System.Double xCoord

X coordinate.

System.Double yCoord

Y coordinate.

System.Double zCoord

Z coordinate.

Properties

| Improve this Doc View Source

IsUnset

Gets or sets a value indicating whether the current point is unset.

Declaration
public bool IsUnset { get; set; }
Property Value
Type Description
System.Boolean

True if Unset.

| Improve this Doc View Source

X

Gets or sets x Coordinate.

Declaration
public double X { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Y

Gets or sets y Coordinate.

Declaration
public double Y { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Z

Gets or sets z Coordinate.

Declaration
public double Z { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Add(BasePoint)

Add a point to this point.

Declaration
public void Add(BasePoint point)
Parameters
Type Name Description
BasePoint point

Point to add.

| Improve this Doc View Source

Divide(Double)

Divide this point by a number.

Declaration
public void Divide(double scalar)
Parameters
Type Name Description
System.Double scalar

Number to divide by.

| Improve this Doc View Source

Equals(Object)

Performs a deep clone of the point.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

Object to compare to.

Returns
Type Description
System.Boolean

Returns a copy of this BasePoint instance.

| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

Multiply(Double)

Multiply this point by a number.

Declaration
public void Multiply(double scalar)
Parameters
Type Name Description
System.Double scalar

Number to multiply by.

| Improve this Doc View Source

Negate()

Negates this point.

Declaration
public void Negate()
| Improve this Doc View Source

Substract(BasePoint)

Substract a point from this one.

Declaration
public void Substract(BasePoint point)
Parameters
Type Name Description
BasePoint point

Point to substract.

| Improve this Doc View Source

ToArray()

Converts a point to an array of numbers.

Declaration
public double[] ToArray()
Returns
Type Description
System.Double[]

Array with cartesian coordinates of point.

| Improve this Doc View Source

ToString()

Returns the string representation of this point.

Declaration
public override string ToString()
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX