Class Vec2
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Vec2 : BoxedRecord, IEquatable<Vec2>
- Inheritance
-
Vec2
- Implements
- Inherited Members
Constructors
Vec2()
public Vec2()
Vec2(Vec2OwnedHandle)
public Vec2(Vec2OwnedHandle handle)
Parameters
handle
Vec2OwnedHandle
Properties
Handle
public Vec2OwnedHandle Handle { get; }
Property Value
Methods
Alloc()
[Version("1.0")]
public static Vec2 Alloc()
Returns
Dot(Vec2)
[Version("1.0")]
public float Dot(Vec2 b)
Parameters
b
Vec2
Returns
Equal(Vec2)
[Version("1.2")]
public bool Equal(Vec2 v2)
Parameters
v2
Vec2
Returns
Equals(Vec2?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Vec2? other)
Parameters
other
Vec2An 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.
GetX()
[Version("1.0")]
public float GetX()
Returns
GetY()
[Version("1.0")]
public float GetY()
Returns
Init(float, float)
[Version("1.0")]
public Vec2 Init(float x, float y)
Parameters
Returns
InitFromVec2(Vec2)
[Version("1.0")]
public Vec2 InitFromVec2(Vec2 src)
Parameters
src
Vec2
Returns
Length()
[Version("1.0")]
public float Length()
Returns
Near(Vec2, float)
[Version("1.2")]
public bool Near(Vec2 v2, float epsilon)
Parameters
Returns
One()
[Version("1.0")]
public static Vec2 One()
Returns
XAxis()
[Version("1.0")]
public static Vec2 XAxis()
Returns
YAxis()
[Version("1.0")]
public static Vec2 YAxis()
Returns
Zero()
[Version("1.0")]
public static Vec2 Zero()