float3 Structure 
Namespace: Fusee.Math.Core
public struct float3 : IEquatable<float3>
The float3 type exposes the following members.
Name  Description  

float3(double3) 
Constructs a new float3 by converting from a double3.
 
float3(float2) 
Constructs a new float3 from the given float2.
 
float3(float3) 
Constructs a new float3 from the given float3.
 
float3(float4) 
Constructs a new float3 from the given float4.
 
float3(Single, Single, Single) 
Constructs a new float3.

Name  Description  

b 
The blue component (same as z)
 
g 
The green component (same as y)
 
Length 
Gets the length (magnitude) of the vector.
 
LengthFast 
Gets an approximation of the vector length (magnitude).
 
LengthSquared 
Gets the square of the vector length (magnitude).
 
Parse 
Gets or sets the Converter object. Has the ability to convert a string to a float3.
 
r 
The red component (same as x)
 
xy 
Gets or sets an OpenTK.float2 with the x and y components of this instance.
 
xyz 
Gets or sets an OpenTK.float3 with the x, y and z components of this instance.

Name  Description  

Add(float3)  Obsolete.
Add the Vector passed as parameter to this instance.
 
Add(float3)  Obsolete.
Add the Vector passed as parameter to this instance.
 
Add(float3, float3) 
Adds two vectors.
 
Add(float3, float3, float3) 
Adds two vectors.
 
Barycentric 
Interpolate 3 Vectors using Barycentric coordinates
 
CalculateAngle(float3, float3) 
Calculates the angle (in radians) between two vectors.
 
CalculateAngle(float3, float3, Single) 
Calculates the angle (in radians) between two vectors.
 
Clamp(float3, float3, float3) 
Clamp a vector to the given minimum and maximum vectors
 
Clamp(float3, float3, float3, float3) 
Clamp a vector to the given minimum and maximum vectors
 
ComponentMax(float3, float3) 
Calculate the componentwise maximum of two vectors
 
ComponentMax(float3, float3, float3) 
Calculate the componentwise maximum of two vectors
 
ComponentMin(float3, float3) 
Calculate the componentwise minimum of two vectors
 
ComponentMin(float3, float3, float3) 
Calculate the componentwise minimum of two vectors
 
Cross(float3, float3) 
Caclulate the cross (vector) product of two vectors
 
Cross(float3, float3, float3) 
Caclulate the cross (vector) product of two vectors
 
Div(Single)  Obsolete.
Divide this instance by a scalar.
 
Div(float3, Single)  Obsolete.
Divide a vector by a scalar
 
Div(float3, Single, float3)  Obsolete.
Divide a vector by a scalar
 
Divide(float3, float3) 
Divides a vector by the components of a vector (scale).
 
Divide(float3, Single) 
Divides a vector by a scalar.
 
Divide(float3, float3, float3) 
Divide a vector by the components of a vector (scale).
 
Divide(float3, Single, float3) 
Divides a vector by a scalar.
 
Dot(float3, float3) 
Calculate the dot (scalar) product of two vectors
 
Dot(float3, float3, Single) 
Calculate the dot (scalar) product of two vectors
 
Equals(Object) 
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)  
Equals(float3) 
Indicates whether the current vector is equal to another vector.
 
GetBarycentric 
Calculates the barycentric coordinates for the given point in the given triangle, such that u*a + v*b + (1uv)*c = point.
 
GetHashCode 
Returns the hashcode for this instance.
(Overrides ValueTypeGetHashCode.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
Lerp(float3, float3, Single) 
Returns a new Vector that is the linear blend of the 2 given Vectors
 
Lerp(float3, float3, Single, float3) 
Returns a new Vector that is the linear blend of the 2 given Vectors
 
Max 
Returns the float3 with the minimum magnitude
 
Min 
Returns the float3 with the minimum magnitude
 
Mult(Single)  Obsolete.
Multiply this instance by a scalar.
 
Mult(float3, Single)  Obsolete.
Multiply a vector and a scalar
 
Mult(float3, Single, float3)  Obsolete.
Multiply a vector and a scalar
 
Multiply(float3, float3) 
Multiplies a vector by the components a vector (scale).
 
Multiply(float3, Single) 
Multiplies a vector by a scalar.
 
Multiply(float3, float3, float3) 
Multiplies a vector by the components of a vector (scale).
 
Multiply(float3, Single, float3) 
Multiplies a vector by a scalar.
 
Normalize 
Scales the float3 to unit length.
 
Normalize(float3) 
Scale a vector to unit length
 
Normalize(float3, float3) 
Scale a vector to unit length
 
NormalizeFast 
Scales the float3 to approximately unit length.
 
NormalizeFast(float3) 
Scale a vector to approximately unit length
 
NormalizeFast(float3, float3) 
Scale a vector to approximately unit length
 
OrthoNormalize 
Orthoes the normalize.
 
Scale(float3)  Obsolete.
Scales this instance by the given parameter.
 
Scale(float3)  Obsolete.
Scales this instance by the given parameter.
 
Scale(Single, Single, Single)  Obsolete.
Scales the current float3 by the given amounts.
 
Sub(float3)  Obsolete.
Subtract the Vector passed as parameter from this instance.
 
Sub(float3)  Obsolete.
Subtract the Vector passed as parameter from this instance.
 
Sub(float3, float3)  Obsolete.
Subtract one Vector from another
 
Sub(float3, float3, float3)  Obsolete.
Subtract one Vector from another
 
Subtract(float3, float3) 
Subtract one Vector from another
 
Subtract(float3, float3, float3) 
Subtract one Vector from another
 
ToArray 
Returns an array of floats with the three components of the vector.
 
ToString 
Returns a System.String that represents the current float3.
(Overrides ValueTypeToString.)  
Transform(float3, float4x4) 
Transform a Vector by the given Matrix
 
Transform(float3, Quaternion) 
Transforms a vector by a quaternion rotation.
 
Transform(float3, Quaternion, float3) 
Transforms a vector by a quaternion rotation.
 
TransformNormal(float3, float4x4) 
Transform a Normal by the given Matrix
 
TransformNormal(float3, float4x4, float3) 
Transform a Normal by the given Matrix
 
TransformNormalInverse(float3, float4x4) 
Transform a Normal by the (transpose of the) given Matrix
 
TransformNormalInverse(float3, float4x4, float3) 
Transform a Normal by the (transpose of the) given Matrix
 
TransformPerspective 
Transform this instance by the given Matrix, and project the resulting float4 back to a float3
 
TransformPosition(float3, float4x4) 
Transform a Position by the given Matrix
 
TransformPosition(float3, float4x4, float3) 
Transform a Position by the given Matrix
 
TransformVector(float3, float4x4) 
Transform a direction vector by the given Matrix
Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.
 
TransformVector(float3, float4x4, float3) 
Transform a direction vector by the given Matrix
Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.

Name  Description  

Addition 
Adds two instances.
 
Division 
Divides an instance by a scalar.
 
Equality 
Compares two instances for equality.
 
(double3 to float3) 
Explicit cast operator to cast a double3 into a float3 value.
 
Inequality 
Compares two instances for inequality.
 
Multiply(Single, float3) 
Multiplies an instance by a scalar.
 
Multiply(float3, float3) 
Multiplies two instances (componentwise).
 
Multiply(float3, Single) 
Multiplies an instance by a scalar.
 
Subtraction 
Subtracts two instances.
 
UnaryNegation 
Negates an instance.

Name  Description  

One 
Defines an instance with all components set to 1.
 
UnitX 
Defines a unitlength float3 that points towards the xaxis.
 
UnitY 
Defines a unitlength float3 that points towards the yaxis.
 
UnitZ 
Defines a unitlength float3 that points towards the zaxis.
 
x 
The x component of the float3.
 
y 
The y component of the float3.
 
z 
The z component of the float3.
 
Zero 
Defines a zerolength float3.
