Class Point
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Point : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Point>, IDisposable
- Inheritance
-
Point
- Implements
- Inherited Members
Constructors
Point()
public Point()
Point(PointOwnedHandle)
public Point(PointOwnedHandle handle)
Parameters
handlePointOwnedHandle
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
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
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
bPoint
Returns
Equals(Point?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Point? other)
Parameters
otherPointAn 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
objobjectThe 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
srcPoint
Returns
InitFromVec2(Vec2)
[Version("1.4")]
public Point InitFromVec2(Vec2 src)
Parameters
srcVec2
Returns
Near(Point, float)
[Version("1.0")]
public bool Near(Point b, float epsilon)
Parameters
Returns
Zero()
[Version("1.0")]
public static Point Zero()