Table of Contents

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

PointOwnedHandle

X

public float X { get; set; }

Property Value

float

Y

public float Y { get; set; }

Property Value

float

Methods

Alloc()

[Version("1.0")]
public static Point Alloc()

Returns

Point

Distance(Point, out float, out float)

[Version("1.0")]
public float Distance(Point b, out float dX, out float dY)

Parameters

b Point
dX float
dY float

Returns

float

Equal(Point)

[Version("1.0")]
public bool Equal(Point b)

Parameters

b Point

Returns

bool

Equals(Point?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Point? other)

Parameters

other Point

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("1.0")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

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

x float
y float

Returns

Point

InitFromPoint(Point)

[Version("1.0")]
public Point InitFromPoint(Point src)

Parameters

src Point

Returns

Point

InitFromVec2(Vec2)

[Version("1.4")]
public Point InitFromVec2(Vec2 src)

Parameters

src Vec2

Returns

Point

Near(Point, float)

[Version("1.0")]
public bool Near(Point b, float epsilon)

Parameters

b Point
epsilon float

Returns

bool

Zero()

[Version("1.0")]
public static Point Zero()

Returns

Point