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