Struct Vector3
Assembly: Chroma.Mono.dll
Syntax
public struct Vector3 : IEquatable<Vector3>
Constructors
Vector3(Vector2)
Declaration
public Vector3(Vector2 xy)
Parameters
Vector3(Vector2, Single)
Declaration
public Vector3(Vector2 xy, float z)
Parameters
Type |
Name |
Description |
Vector2 |
xy |
|
System.Single |
z |
|
Vector3(Vector4)
Declaration
public Vector3(Vector4 vec)
Parameters
Vector3(Single)
Declaration
public Vector3(float scalar)
Parameters
Type |
Name |
Description |
System.Single |
scalar |
|
Vector3(Single, Single)
Declaration
public Vector3(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Vector3(Single, Single, Single)
Declaration
public Vector3(float x, float y, float z)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
Fields
Down
Declaration
public static Vector3 Down
Field Value
Forward
Declaration
public static Vector3 Forward
Field Value
One
Declaration
public static Vector3 One
Field Value
Right
Declaration
public static Vector3 Right
Field Value
Up
Declaration
Field Value
X
Declaration
Field Value
Type |
Description |
System.Single |
|
Y
Declaration
Field Value
Type |
Description |
System.Single |
|
Z
Declaration
Field Value
Type |
Description |
System.Single |
|
Zero
Declaration
public static Vector3 Zero
Field Value
Properties
XY
Declaration
public Vector2 XY { get; set; }
Property Value
XZ
Declaration
public Vector2 XZ { get; set; }
Property Value
YZ
Declaration
public Vector2 YZ { get; set; }
Property Value
Methods
Clamp(Vector3, Vector3)
Declaration
public void Clamp(Vector3 min, Vector3 max)
Parameters
Cos(Vector3)
Declaration
public static Vector3 Cos(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Distance(Vector3)
Declaration
public float Distance(Vector3 other)
Parameters
Type |
Name |
Description |
Vector3 |
other |
|
Returns
Type |
Description |
System.Single |
|
Distance(Vector3, Vector3)
Declaration
public static float Distance(Vector3 first, Vector3 second)
Parameters
Returns
Type |
Description |
System.Single |
|
Equals(Vector3)
Declaration
public bool Equals(Vector3 right)
Parameters
Type |
Name |
Description |
Vector3 |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Length()
Declaration
Returns
Type |
Description |
System.Single |
|
Lerp(Vector3, Vector3, Single)
Declaration
public static Vector3 Lerp(Vector3 from, Vector3 to, float delta)
Parameters
Returns
Normalize()
Declaration
Normalized()
Declaration
public Vector3 Normalized()
Returns
Sin(Vector3)
Declaration
public static Vector3 Sin(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Addition(Vector3, Vector3)
Declaration
public static Vector3 operator +(Vector3 left, Vector3 right)
Parameters
Returns
Addition(Vector3, Single)
Declaration
public static Vector3 operator +(Vector3 left, float right)
Parameters
Type |
Name |
Description |
Vector3 |
left |
|
System.Single |
right |
|
Returns
Division(Vector3, Vector3)
Declaration
public static Vector3 operator /(Vector3 left, Vector3 right)
Parameters
Returns
Division(Vector3, Single)
Declaration
public static Vector3 operator /(Vector3 left, float scalar)
Parameters
Type |
Name |
Description |
Vector3 |
left |
|
System.Single |
scalar |
|
Returns
Equality(Vector3, Vector3)
Declaration
public static bool operator ==(Vector3 left, Vector3 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Vector3, Vector3)
Declaration
public static bool operator !=(Vector3 left, Vector3 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(Vector3, Vector3)
Declaration
public static Vector3 operator *(Vector3 left, Vector3 right)
Parameters
Returns
Multiply(Vector3, Single)
Declaration
public static Vector3 operator *(Vector3 left, float scalar)
Parameters
Type |
Name |
Description |
Vector3 |
left |
|
System.Single |
scalar |
|
Returns
Multiply(Single, Vector3)
Declaration
public static Vector3 operator *(float scalar, Vector3 right)
Parameters
Type |
Name |
Description |
System.Single |
scalar |
|
Vector3 |
right |
|
Returns
Subtraction(Vector3, Vector3)
Declaration
public static Vector3 operator -(Vector3 left, Vector3 right)
Parameters
Returns
UnaryNegation(Vector3)
Declaration
public static Vector3 operator -(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns