Class Quaternion
A pure .NET implemenation of Unity's Quaternion.
See Unity's docs for more details.
Inheritance
System.Object
Quaternion
Assembly: Sylves.dll
Syntax
public sealed class Quaternion : ValueType
Constructors
Quaternion(Single, Single, Single, Single)
Declaration
public Quaternion(float x, float y, float z, float w)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
System.Single |
w |
|
Fields
w
Declaration
Field Value
Type |
Description |
System.Single |
|
x
Declaration
Field Value
Type |
Description |
System.Single |
|
y
Declaration
Field Value
Type |
Description |
System.Single |
|
z
Declaration
Field Value
Type |
Description |
System.Single |
|
Properties
eulerAngles
Declaration
public Vector3 eulerAngles { get; set; }
Property Value
identity
Declaration
public static Quaternion identity { get; }
Property Value
Methods
AngleAxis(Single, Vector3)
Declaration
public static Quaternion AngleAxis(float angle, Vector3 axis)
Parameters
Type |
Name |
Description |
System.Single |
angle |
|
Vector3 |
axis |
|
Returns
Equals(Quaternion)
Declaration
public bool Equals(Quaternion other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Euler(Vector3)
Declaration
public static Quaternion Euler(Vector3 euler)
Parameters
Type |
Name |
Description |
Vector3 |
euler |
|
Returns
Euler(Single, Single, Single)
Declaration
public static Quaternion Euler(float x, float y, float z)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IEquatable<>