Class Point
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Point : BoxedRecord, IEquatable<Point>
- Inheritance
-
Point
- Implements
- Inherited Members
Constructors
Point()
public Point()
Point(PointOwnedHandle)
public Point(PointOwnedHandle handle)
Parameters
handle
PointOwnedHandle
Properties
Handle
public PointOwnedHandle Handle { get; }
Property Value
X
public float X { get; set; }
Property Value
Y
public float Y { get; set; }
Property Value
Methods
Alloc()
[Version("1.0")]
public static Point Alloc()
Returns
Distance(Point, out float, out float)
[Version("1.0")]
public float Distance(Point b, out float dX, out float dY)
Parameters
Returns
Equal(Point)
[Version("1.0")]
public bool Equal(Point b)
Parameters
b
Point
Returns
Equals(Point?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Point? other)
Parameters
other
PointAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("1.0")]
public void Free()
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Init(float, float)
[Version("1.0")]
public Point Init(float x, float y)
Parameters
Returns
InitFromPoint(Point)
[Version("1.0")]
public Point InitFromPoint(Point src)
Parameters
src
Point
Returns
InitFromVec2(Vec2)
[Version("1.4")]
public Point InitFromVec2(Vec2 src)
Parameters
src
Vec2
Returns
Near(Point, float)
[Version("1.0")]
public bool Near(Point b, float epsilon)
Parameters
Returns
Zero()
[Version("1.0")]
public static Point Zero()