Search Results for

    Show / Hide Table of Contents

    Struct Point3D

    Represents a geometric 3D point.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: TopSolid.Kernel.Automating
    Assembly: cs.temp.dll.dll
    Syntax
    [AvailableSinceVersion(7, 6, 0, 0)]
    public struct Point3D
    Remarks

    This structure is available since v7.6.

    Constructors

    Point3D(Double, Double, Double)

    Initializes a new instance of the Point3D structure with its coordinates.

    Declaration
    public Point3D(double inX, double inY, double inZ)
    Parameters
    Type Name Description
    System.Double inX

    X coordinate.

    System.Double inY

    Y coordinate.

    System.Double inZ

    Z coordinate.

    Fields

    P0

    Origin point, i.e. (0,0,0).

    Declaration
    public static readonly Point3D P0
    Field Value
    Type Description
    Point3D

    PX

    X unit point, i.e. (1,0,0).

    Declaration
    public static readonly Point3D PX
    Field Value
    Type Description
    Point3D

    PY

    Y unit point, i.e. (0,1,0).

    Declaration
    public static readonly Point3D PY
    Field Value
    Type Description
    Point3D

    PZ

    Z unit point, i.e. (0,0,1).

    Declaration
    public static readonly Point3D PZ
    Field Value
    Type Description
    Point3D

    X

    X coordinate.

    Declaration
    public double X
    Field Value
    Type Description
    System.Double

    Y

    Y coordinate.

    Declaration
    public double Y
    Field Value
    Type Description
    System.Double

    Z

    Z coordinate.

    Declaration
    public double Z
    Field Value
    Type Description
    System.Double

    Methods

    CoincidesWith(Point3D)

    Tells whether this point coincides with another point.

    Declaration
    public bool CoincidesWith(Point3D inPoint)
    Parameters
    Type Name Description
    Point3D inPoint

    Point to compare with.

    Returns
    Type Description
    System.Boolean

    This point coincides with the specified point.

    Remarks

    Two points are considered coincident if they are less than LinearPrecision apart.

    Operators

    Addition(Point3D, Point3D)

    Adds two points.

    Declaration
    public static Point3D operator +(Point3D inPoint1, Point3D inPoint2)
    Parameters
    Type Name Description
    Point3D inPoint1

    Left hand side point.

    Point3D inPoint2

    Right hand side point.

    Returns
    Type Description
    Point3D

    Sum point.

    Addition(Point3D, Vector3D)

    Adds a point and a vector.

    Declaration
    public static Point3D operator +(Point3D inPoint, Vector3D inVector)
    Parameters
    Type Name Description
    Point3D inPoint

    Left hand side point.

    Vector3D inVector

    Right hand side vector.

    Returns
    Type Description
    Point3D

    Translated point.

    BitwiseOr(Point3D, Point3D)

    Computes the vector from one point to another point.

    Declaration
    public static Vector3D operator |(Point3D inPoint1, Point3D inPoint2)
    Parameters
    Type Name Description
    Point3D inPoint1

    First point.

    Point3D inPoint2

    Second point.

    Returns
    Type Description
    Vector3D

    Vector from first point to second point.

    Division(Point3D, Double)

    Divides a point by a double value.

    Declaration
    public static Point3D operator /(Point3D inPoint, double inD)
    Parameters
    Type Name Description
    Point3D inPoint

    Left hand side point.

    System.Double inD

    Right hand side double value.

    Returns
    Type Description
    Point3D

    Scaled point.

    Multiply(Double, Point3D)

    Multiplies a double value and a point.

    Declaration
    public static Point3D operator *(double inD, Point3D inPoint)
    Parameters
    Type Name Description
    System.Double inD

    Left hand side double value.

    Point3D inPoint

    Right hand side point.

    Returns
    Type Description
    Point3D

    Multiplied point.

    Multiply(Point3D, Double)

    Multiplies a point and a double value.

    Declaration
    public static Point3D operator *(Point3D inPoint, double inD)
    Parameters
    Type Name Description
    Point3D inPoint

    Left hand side point.

    System.Double inD

    Right hand side double value.

    Returns
    Type Description
    Point3D

    Multiplied point.

    Subtraction(Point3D, Vector3D)

    Subtracts a point and a vector.

    Declaration
    public static Point3D operator -(Point3D inPoint, Vector3D inVector)
    Parameters
    Type Name Description
    Point3D inPoint

    Left hand side point.

    Vector3D inVector

    Right hand side vector.

    Returns
    Type Description
    Point3D

    Translated point.

    In This Article
    • Mentions légales
    • C.G.U
    • Données personnelles

    Copyright © 2024 TopSolid Tous droits réservés