Search Results for

    Show / Hide Table of Contents

    Struct Point2D

    Represents a geometric 2D 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 Point2D
    Remarks

    This structure is available since v7.6.

    Constructors

    Point2D(Double, Double)

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

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

    X coordinate.

    System.Double inY

    Y coordinate.

    Fields

    P0

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

    Declaration
    public static readonly Point2D P0
    Field Value
    Type Description
    Point2D

    PX

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

    Declaration
    public static readonly Point2D PX
    Field Value
    Type Description
    Point2D

    PY

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

    Declaration
    public static readonly Point2D PY
    Field Value
    Type Description
    Point2D

    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

    Methods

    CoincidesWith(Point2D)

    Tells whether this point coincides with another point.

    Declaration
    public bool CoincidesWith(Point2D inPoint)
    Parameters
    Type Name Description
    Point2D 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(Point2D, Point2D)

    Adds two points.

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

    Left hand side point.

    Point2D inPoint2

    Right hand side point.

    Returns
    Type Description
    Point2D

    Sum point.

    Addition(Point2D, Vector2D)

    Adds a point and a vector.

    Declaration
    public static Point2D operator +(Point2D inPoint, Vector2D inVector)
    Parameters
    Type Name Description
    Point2D inPoint

    Left hand side point.

    Vector2D inVector

    Right hand side vector.

    Returns
    Type Description
    Point2D

    Translated point.

    BitwiseOr(Point2D, Point2D)

    Computes the vector from one point to another point.

    Declaration
    public static Vector2D operator |(Point2D inPoint1, Point2D inPoint2)
    Parameters
    Type Name Description
    Point2D inPoint1

    First point.

    Point2D inPoint2

    Second point.

    Returns
    Type Description
    Vector2D

    Vector from first point to second point.

    Division(Point2D, Double)

    Divides a point by a double value.

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

    Left hand side point.

    System.Double inD

    Right hand side double value.

    Returns
    Type Description
    Point2D

    Scaled point.

    Multiply(Double, Point2D)

    Multiplies a double value and a point.

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

    Left hand side double value.

    Point2D inPoint

    Right hand side point.

    Returns
    Type Description
    Point2D

    Multiplied point.

    Multiply(Point2D, Double)

    Multiplies a point and a double value.

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

    Left hand side point.

    System.Double inD

    Right hand side double value.

    Returns
    Type Description
    Point2D

    Multiplied point.

    Subtraction(Point2D, Vector2D)

    Subtracts a point and a vector.

    Declaration
    public static Point2D operator -(Point2D inPoint, Vector2D inVector)
    Parameters
    Type Name Description
    Point2D inPoint

    Left hand side point.

    Vector2D inVector

    Right hand side vector.

    Returns
    Type Description
    Point2D

    Translated point.

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

    Copyright © 2024 TopSolid Tous droits réservés