BRIDGES
  • Articles
  • BRIDGES
Search Results for

    Show / Hide Table of Contents
    • Settings
    • LinearAlgebra
      • Vectors
        • DenseVector
        • SparseVector
        • Vector
      • Factorisation
        • SparseQR
      • Matrices
        • DenseMatrix
        • Matrix
        • SparseMatrix
        • Sparse
          • CompressedColumn
          • CompressedRow
        • Storage
          • DictionaryOfKeys
    • Algebra
      • Measure
        • IDotProduct<TSelf, TValue>
        • IMetric<TSelf>
        • INorm<TSelf>
      • Sets
        • IGroupAction<TSelf, TValue>
      • Fundamentals
        • IAddable<T>
    • Solvers
      • GuidedProjection
        • Energy
        • GuidedProjectionAlgorithm
        • LinearisedConstraint
        • QuadraticConstraint
        • VariableSet
        • EnergyTypes
          • SegmentOrthogonality
          • SegmentParallelity
        • Interfaces
          • IEnergyType
          • ILinearisedConstraintType
          • IQuadraticConstraintType
        • QuadraticConstraintTypes
          • CoherentLength
          • LowerBound
          • UpperBound
          • VectorLength
    • Arithmetic
      • Polynomials
        • Multivariate
          • Monomial
          • Polynomial
        • Univariate
          • Polynomial
          • Specials
            • Bernstein
            • BSpline
      • Numbers
        • Complex
        • Quaternion
        • Real
    • Geometry
      • Euclidean3D
        • Basis
        • BSplineCurve
        • BSplineSurface
        • Circle
        • Frame
        • Line
        • NurbsCurve
        • NurbsSurface
        • Plane
        • Point
        • Polyline
        • Ray
        • Segment
        • Sphere
        • Vector
      • Kernel
        • BSplineCurve<TPoint>
        • BSplineSurface<TPoint>
        • CurveParameterFormat
        • IGeometricallyEquatable<T>
      • Projective3D
        • Point
    • DataStructures
      • PolyhedralMeshes
        • IEdge<TPosition>
        • IFace<TPosition>
        • IMesh<TPosition>
        • IVertex<TPosition>
        • FaceVertexMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>
        • Abstract
          • Edge<TPosition, TVertex, TEdge, TFace>
          • Face<TPosition, TVertex, TEdge, TFace>
          • Mesh<TPosition, TVertex, TEdge, TFace>
          • Vertex<TPosition, TVertex, TEdge, TFace>
        • HalfedgeMesh
          • Edge<TPosition>
          • Face<TPosition>
          • Halfedge<TPosition>
          • Mesh<TPosition>
          • Vertex<TPosition>

    Struct Point

    Structure defining a point in three-dimensional euclidean space.

    Implements
    IEquatable<Point>
    IAddable<Point>
    IDotProduct<Point, Double>
    INorm<Point>
    IMetric<Point>
    IGroupAction<Point, Double>
    Namespace: BRIDGES.Geometry.Euclidean3D
    Assembly: BRIDGES.dll
    Syntax
    public struct Point : IAddable<Point>, IDotProduct<Point, double>, INorm<Point>, IMetric<Point>, IGroupAction<Point, double>

    Constructors

    | Improve this Doc View Source

    Point(Point)

    Initialises a new instance of the Point structure from another Point.

    Declaration
    public Point(Point point)
    Parameters
    Type Name Description
    Point point

    Point to deep copy.

    | Improve this Doc View Source

    Point(Double, Double, Double)

    Initialises a new instance of the Point structure by defining its three coordinates.

    Declaration
    public Point(double x, double y, double z)
    Parameters
    Type Name Description
    Double x

    Value of the first coordinate.

    Double y

    Value of the second coordinate.

    Double z

    Value of the third coordinate.

    | Improve this Doc View Source

    Point(Double[])

    Initialises a new instance of Point structure by defining its coordinates.

    Declaration
    public Point(double[] coordinates)
    Parameters
    Type Name Description
    Double[] coordinates

    Value of the coordinates.

    Properties

    | Improve this Doc View Source

    Dimension

    Gets the dimension of this Point's euclidean space.

    Declaration
    public readonly int Dimension { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Item[Int32]

    Gets or sets the value of the coordinate at the given index.

    Declaration
    public double this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index

    Index of the coordinate to get or set.

    Property Value
    Type Description
    Double

    The value of the coordinate at the given index.

    | Improve this Doc View Source

    X

    Gets or sets the first coordinate of this Point.

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

    Y

    Gets or sets the second coordinate of this Point.

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

    Z

    Gets or sets the third coordinate of this Point.

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

    Zero

    Gets a new Point with coordinates (0.0, 0.0, 0.0).

    Declaration
    public static readonly Point Zero { get; }
    Property Value
    Type Description
    Point

    Methods

    | Improve this Doc View Source

    Add(Point, Point)

    Computes the addition of two Point.

    Declaration
    public static Point Add(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point for the addition.

    Point right

    Point for the addition.

    Returns
    Type Description
    Point

    The new Point resulting from the addition.

    | Improve this Doc View Source

    Add(Point, Vector)

    Computes right the addition of a Point with a Vector.

    Declaration
    public static Point Add(Point left, Vector right)
    Parameters
    Type Name Description
    Point left

    Point for the addition.

    Vector right

    Vector for the addition.

    Returns
    Type Description
    Point

    The new Point resulting from the addition.

    | Improve this Doc View Source

    Add(Vector, Point)

    Computes left the addition of a Point with a Vector.

    Declaration
    public static Point Add(Vector left, Point right)
    Parameters
    Type Name Description
    Vector left

    Vector for the addition.

    Point right

    Point for the addition.

    Returns
    Type Description
    Point

    The new Point resulting from the addition.

    | Improve this Doc View Source

    CrossProduct(Point, Point)

    Returns the cross product of two Point.

    Declaration
    public static Point CrossProduct(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Left Point for the cross product.

    Point right

    Right Point for the cross product.

    Returns
    Type Description
    Point

    A new Point resulting from the cross product of two Point.

    | Improve this Doc View Source

    DistanceTo(Point)

    Computes the distance of this Point to another Point (using the L2-norm).

    Declaration
    public double DistanceTo(Point other)
    Parameters
    Type Name Description
    Point other

    Point to evaluate the distance to.

    Returns
    Type Description
    Double

    The value of the distance between the two Point.

    | Improve this Doc View Source

    Divide(Point, Double)

    Computes the scalar division of a Point with a number.

    Declaration
    public static Point Divide(Point operand, double divisor)
    Parameters
    Type Name Description
    Point operand

    Point to divide.

    Double divisor

    number to divide with.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar division.

    | Improve this Doc View Source

    DotProduct(Point, Point)

    Computes the dot product of two Point.

    Declaration
    public static double DotProduct(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point for the dot product.

    Point right

    Point for the dot product.

    Returns
    Type Description
    Double

    The new Point resulting from the dot product of two Point.

    | Improve this Doc View Source

    Equals(Point)

    Evaluates whether this Point is equal to another Point, memberwise.

    Declaration
    public bool Equals(Point other)
    Parameters
    Type Name Description
    Point other

    Point to compare with.

    Returns
    Type Description
    Boolean

    true if the two Point are equal, false otherwise.

    Remarks

    Two Point are equal if their coordinates are equal.

    | Improve this Doc View Source

    Equals(Object)

    Structure defining a point in three-dimensional euclidean space.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    GetCoordinates()

    Gets the coordinates of this Point.

    Declaration
    public double[] GetCoordinates()
    Returns
    Type Description
    Double[]

    The array representation of the Point's coordinates.

    | Improve this Doc View Source

    GetHashCode()

    Structure defining a point in three-dimensional euclidean space.

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

    Multiply(Point, Double)

    Computes the right scalar multiplication of a Point with a number.

    Declaration
    public static Point Multiply(Point operand, double factor)
    Parameters
    Type Name Description
    Point operand

    Point to multiply.

    Double factor

    number.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar multiplication.

    | Improve this Doc View Source

    Multiply(Double, Point)

    Computes the left scalar multiplication of a Point with a number.

    Declaration
    public static Point Multiply(double factor, Point operand)
    Parameters
    Type Name Description
    Double factor

    number.

    Point operand

    Point to multiply.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar multiplication.

    | Improve this Doc View Source

    Norm()

    Computes the L2-norm this Point.

    Declaration
    public double Norm()
    Returns
    Type Description
    Double

    The value of the norm.

    | Improve this Doc View Source

    SquaredNorm()

    Computes the L2-norm this Point.

    Declaration
    public double SquaredNorm()
    Returns
    Type Description
    Double

    The value of the norm.

    | Improve this Doc View Source

    Subtract(Point, Point)

    Computes the subtraction of two Point.

    Declaration
    public static Point Subtract(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point to subtract.

    Point right

    Point to subtract with.

    Returns
    Type Description
    Point

    The new Point resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(Point, Vector)

    Computes the right subtraction of a Point with a Vector.

    Declaration
    public static Point Subtract(Point left, Vector right)
    Parameters
    Type Name Description
    Point left

    Point to subtract.

    Vector right

    Vector to subtract with.

    Returns
    Type Description
    Point

    The new Point resulting from the subtraction.

    | Improve this Doc View Source

    Subtract(Vector, Point)

    Computes the left subtraction of a Point with a Vector.

    Declaration
    public static Point Subtract(Vector left, Point right)
    Parameters
    Type Name Description
    Vector left

    Vector to subtract.

    Point right

    Point to subtract with.

    Returns
    Type Description
    Point

    The new Point resulting from the subtraction.

    | Improve this Doc View Source

    ToString()

    Structure defining a point in three-dimensional euclidean space.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Operators

    | Improve this Doc View Source

    Addition(Point, Point)

    Computes the addition of two Point.

    Declaration
    public static Point operator +(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point for the addition.

    Point right

    Point for the addition.

    Returns
    Type Description
    Point

    The new Point resulting from the addition.

    | Improve this Doc View Source

    Addition(Point, Vector)

    Computes right the addition of a Point with a Vector.

    Declaration
    public static Point operator +(Point left, Vector right)
    Parameters
    Type Name Description
    Point left

    Point for the addition.

    Vector right

    Vector for the addition.

    Returns
    Type Description
    Point

    The new Point resulting from the addition.

    | Improve this Doc View Source

    Division(Point, Double)

    Computes the scalar division of a Point with a number.

    Declaration
    public static Point operator /(Point operand, double divisor)
    Parameters
    Type Name Description
    Point operand

    Point to divide.

    Double divisor

    number to divide with.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar division.

    | Improve this Doc View Source

    Explicit(Point to Point)

    Converts a Point into a Point.

    Declaration
    public static explicit operator Point(Point point)
    Parameters
    Type Name Description
    Point point

    Point to convert.

    Returns
    Type Description
    Point

    The new Point resulting from the conversion.

    | Improve this Doc View Source

    Implicit(Vector to Point)

    Converts a Vector into a Point.

    Declaration
    public static implicit operator Point(Vector vector)
    Parameters
    Type Name Description
    Vector vector

    Vector to convert.

    Returns
    Type Description
    Point

    The new Point resulting from the conversion.

    | Improve this Doc View Source

    Multiply(Point, Point)

    Computes the dot product of two Point.

    Declaration
    public static double operator *(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point for the dot product.

    Point right

    Point for the dot product.

    Returns
    Type Description
    Double

    The new Point resulting from the dot product of two Point.

    | Improve this Doc View Source

    Multiply(Point, Double)

    Computes the right scalar multiplication of a Point with a number.

    Declaration
    public static Point operator *(Point operand, double factor)
    Parameters
    Type Name Description
    Point operand

    Point to multiply.

    Double factor

    number.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar multiplication.

    | Improve this Doc View Source

    Multiply(Double, Point)

    Computes the left scalar multiplication of a Point with a number.

    Declaration
    public static Point operator *(double factor, Point operand)
    Parameters
    Type Name Description
    Double factor

    number.

    Point operand

    Point to multiply.

    Returns
    Type Description
    Point

    The new Point resulting from the scalar multiplication.

    | Improve this Doc View Source

    Subtraction(Point, Point)

    Computes the subtraction of two Point.

    Declaration
    public static Point operator -(Point left, Point right)
    Parameters
    Type Name Description
    Point left

    Point to subtract.

    Point right

    Point to subtract with.

    Returns
    Type Description
    Point

    The new Point resulting from the subtraction.

    | Improve this Doc View Source

    Subtraction(Point, Vector)

    Computes the right subtraction of a Point with a Vector.

    Declaration
    public static Point operator -(Point left, Vector right)
    Parameters
    Type Name Description
    Point left

    Point to subtract.

    Vector right

    Vector to subtract with.

    Returns
    Type Description
    Point

    The new Point resulting from the subtraction.

    | Improve this Doc View Source

    UnaryNegation(Point)

    Computes the opposite of the given Point.

    Declaration
    public static Point operator -(Point operand)
    Parameters
    Type Name Description
    Point operand

    Point to be opposed.

    Returns
    Type Description
    Point

    The new Point, opposite of the initial one.

    Explicit Interface Implementations

    | Improve this Doc View Source

    IAddable<Point>.Add(Point)

    Computes the addition of the current element with another element on the right.

    Declaration
    Point IAddable<Point>.Add(Point right)
    Parameters
    Type Name Description
    Point right
    Returns
    Type Description
    Point

    The new element resulting from the addition.

    | Improve this Doc View Source

    IDotProduct<Point, Double>.DotProduct(Point)

    Computes the dot product of this element with another element.

    Declaration
    double IDotProduct<Point, double>.DotProduct(Point other)
    Parameters
    Type Name Description
    Point other
    Returns
    Type Description
    Double

    The value of the dot product of the two elements.

    | Improve this Doc View Source

    IGroupAction<Point, Double>.Divide(Double)

    Computes the right scalar division of the current element.

    Declaration
    Point IGroupAction<Point, double>.Divide(double divisor)
    Parameters
    Type Name Description
    Double divisor
    Returns
    Type Description
    Point

    The new element resulting from the scalar dividion.

    | Improve this Doc View Source

    IGroupAction<Point, Double>.Multiply(Double)

    Computes the right scalar multiplication of the current element.

    Declaration
    Point IGroupAction<Point, double>.Multiply(double factor)
    Parameters
    Type Name Description
    Double factor
    Returns
    Type Description
    Point

    The new element resulting from the scalar multiplication.

    Implements

    IEquatable<>
    IAddable<T>
    IDotProduct<TSelf, TValue>
    INorm<TSelf>
    IMetric<TSelf>
    IGroupAction<TSelf, TValue>
    • Improve this Doc
    • View Source
    In This Article
    Back to top By ENPC and the Build'In Platform