Struct Position
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: AltV.Net.CApi.dll
Syntax
[DataContract]
public struct Position : IEquatable<Position>
Constructors
|
Improve this Doc
View Source
Position()
Declaration
|
Improve this Doc
View Source
Position(Single, Single, Single)
Declaration
public Position(float x, float y, float z)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
Fields
|
Improve this Doc
View Source
KEpsilon
Declaration
public const float KEpsilon = 1E-05F
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
TOLERANCE
Declaration
public static readonly float TOLERANCE
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
X
Declaration
[DataMember]
public float X
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Y
Declaration
[DataMember]
public float Y
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Z
Declaration
[DataMember]
public float Z
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Zero
Declaration
public static Position Zero
Field Value
Properties
|
Improve this Doc
View Source
Normalized
Declaration
public readonly Position Normalized { get; }
Property Value
Methods
|
Improve this Doc
View Source
Cross(Position, Position)
Declaration
public static Position Cross(Position lhs, Position rhs)
Parameters
Returns
|
Improve this Doc
View Source
Distance(Position)
Declaration
public float Distance(Position b)
Parameters
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Equals(Position)
Declaration
public bool Equals(Position other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
GetMagnitude()
Declaration
public float GetMagnitude()
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
LerpUnclamped(Position, Position, Single)
Declaration
public static Position LerpUnclamped(Position a, Position b, float t)
Parameters
Returns
|
Improve this Doc
View Source
MoveTowards(Position, Position, Single)
Declaration
public static Position MoveTowards(Position current, Position target, float maxDistanceDelta)
Parameters
Type |
Name |
Description |
Position |
current |
|
Position |
target |
|
System.Single |
maxDistanceDelta |
|
Returns
|
Improve this Doc
View Source
Normalize()
Declaration
|
Improve this Doc
View Source
Normalize(Position)
Declaration
public static Position Normalize(Position value)
Parameters
Returns
|
Improve this Doc
View Source
Scale(Position, Position)
Declaration
public static Position Scale(Position a, Position b)
Parameters
Returns
|
Improve this Doc
View Source
ToRadians()
Declaration
public Position ToRadians()
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(Position, Position)
Declaration
public static Position operator +(Position a, Position b)
Parameters
Returns
|
Improve this Doc
View Source
Division(Position, Single)
Declaration
public static Position operator /(Position a, float d)
Parameters
Type |
Name |
Description |
Position |
a |
|
System.Single |
d |
|
Returns
|
Improve this Doc
View Source
Equality(Position, Position)
Declaration
public static bool operator ==(Position p1, Position p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Implicit(Position to Rotation)
Declaration
public static implicit operator Rotation(Position position)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Position to Vector3)
Declaration
public static implicit operator Vector3(Position position)
Parameters
Returns
Type |
Description |
System.Numerics.Vector3 |
|
|
Improve this Doc
View Source
Implicit(Vector3 to Position)
Declaration
public static implicit operator Position(Vector3 vector3)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
vector3 |
|
Returns
|
Improve this Doc
View Source
Inequality(Position, Position)
Declaration
public static bool operator !=(Position p1, Position p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Multiply(Position, Single)
Declaration
public static Position operator *(Position a, float d)
Parameters
Type |
Name |
Description |
Position |
a |
|
System.Single |
d |
|
Returns
|
Improve this Doc
View Source
Multiply(Single, Position)
Declaration
public static Position operator *(float d, Position a)
Parameters
Type |
Name |
Description |
System.Single |
d |
|
Position |
a |
|
Returns
|
Improve this Doc
View Source
Subtraction(Position, Position)
Declaration
public static Position operator -(Position a, Position b)
Parameters
Returns
|
Improve this Doc
View Source
UnaryNegation(Position)
Declaration
public static Position operator -(Position a)
Parameters
Returns
Implements
System.IEquatable<T>