Show / Hide Table of Contents

    Struct float3

    float3

    Implements
    ICudaVectorType
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ManagedCuda.VectorTypes
    Assembly: ManagedCuda.dll
    Syntax
    public struct float3 : ICudaVectorType

    Constructors

    | Improve this Doc View Source

    float3(Single)

    Declaration
    public float3(float val)
    Parameters
    Type Name Description
    System.Single val
    | Improve this Doc View Source

    float3(Single, Single, Single)

    Declaration
    public float3(float xValue, float yValue, float zValue)
    Parameters
    Type Name Description
    System.Single xValue
    System.Single yValue
    System.Single zValue

    Fields

    | Improve this Doc View Source

    x

    X

    Declaration
    public float x
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    y

    Y

    Declaration
    public float y
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    z

    Z

    Declaration
    public float z
    Field Value
    Type Description
    System.Single

    Properties

    | Improve this Doc View Source

    Length

    Vector length

    Declaration
    public float Length { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Size

    Gives the size of this type in bytes.

    Is equal to Marshal.SizeOf(this);

    Declaration
    public uint Size { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    SizeOf

    Gives the size of this type in bytes.

    Is equal to Marshal.SizeOf(float3);

    Declaration
    public static uint SizeOf { get; }
    Property Value
    Type Description
    System.UInt32

    Methods

    | Improve this Doc View Source

    Add(float3, float3)

    per element Add

    Declaration
    public static float3 Add(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Add(float3, Single)

    per element Add

    Declaration
    public static float3 Add(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Add(Single, float3)

    per element Add

    Declaration
    public static float3 Add(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Cross(float3)

    Cross product (this x b)

    Declaration
    public float3 Cross(float3 value)
    Parameters
    Type Name Description
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Cross(float3, float3)

    Cross product

    Declaration
    public static float3 Cross(float3 aValue, float3 bValue)
    Parameters
    Type Name Description
    float3 aValue
    float3 bValue
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Divide(float3, float3)

    per element Divide

    Declaration
    public static float3 Divide(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Divide(float3, Single)

    per element Divide

    Declaration
    public static float3 Divide(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Divide(Single, float3)

    per element Divide

    Declaration
    public static float3 Divide(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Dot(float3)

    Dot product

    Declaration
    public float Dot(float3 value)
    Parameters
    Type Name Description
    float3 value
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    Dot(float3, float3)

    Dot product

    Declaration
    public static float Dot(float3 aValue, float3 bValue)
    Parameters
    Type Name Description
    float3 aValue
    float3 bValue
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    Equals(float3)

    Declaration
    public bool Equals(float3 value)
    Parameters
    Type Name Description
    float3 value
    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

    GetLength(float3)

    Vector length

    Declaration
    public static float GetLength(float3 value)
    Parameters
    Type Name Description
    float3 value
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    Max(float3, float3)

    Component wise maximum as the CUDA function fmaxf

    Declaration
    public static float3 Max(float3 aValue, float3 bValue)
    Parameters
    Type Name Description
    float3 aValue
    float3 bValue
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Min(float3, float3)

    Component wise minimum as the CUDA function fminf

    Declaration
    public static float3 Min(float3 aValue, float3 bValue)
    Parameters
    Type Name Description
    float3 aValue
    float3 bValue
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Multiply(float3, float3)

    per element Multiply

    Declaration
    public static float3 Multiply(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Multiply(float3, Single)

    per element Multiply

    Declaration
    public static float3 Multiply(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Multiply(Single, float3)

    per element Multiply

    Declaration
    public static float3 Multiply(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Normalize()

    Normalize vector

    Declaration
    public void Normalize()
    | Improve this Doc View Source

    Normalize(float3)

    Normalize vector

    Declaration
    public static float3 Normalize(float3 value)
    Parameters
    Type Name Description
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    RotateX(Double)

    Declaration
    public void RotateX(double angle)
    Parameters
    Type Name Description
    System.Double angle
    | Improve this Doc View Source

    RotateY(Double)

    Declaration
    public void RotateY(double angle)
    Parameters
    Type Name Description
    System.Double angle
    | Improve this Doc View Source

    RotateZ(Double)

    Declaration
    public void RotateZ(double angle)
    Parameters
    Type Name Description
    System.Double angle
    | Improve this Doc View Source

    Subtract(float3, float3)

    per element Substract

    Declaration
    public static float3 Subtract(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Subtract(float3, Single)

    per element Substract

    Declaration
    public static float3 Subtract(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Subtract(Single, float3)

    per element Substract

    Declaration
    public static float3 Subtract(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | 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(float3, float3)

    per element

    Declaration
    public static float3 operator +(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Addition(float3, Single)

    per element

    Declaration
    public static float3 operator +(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Addition(Single, float3)

    per element

    Declaration
    public static float3 operator +(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Division(float3, float3)

    per element

    Declaration
    public static float3 operator /(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Division(float3, Single)

    per element

    Declaration
    public static float3 operator /(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Division(Single, float3)

    per element

    Declaration
    public static float3 operator /(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Equality(float3, float3)

    per element

    Declaration
    public static bool operator ==(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(float3, float3)

    per element

    Declaration
    public static bool operator !=(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(float3, float3)

    per element

    Declaration
    public static float3 operator *(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Multiply(float3, Single)

    per element

    Declaration
    public static float3 operator *(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Multiply(Single, float3)

    per element

    Declaration
    public static float3 operator *(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Subtraction(float3, float3)

    per element

    Declaration
    public static float3 operator -(float3 src, float3 value)
    Parameters
    Type Name Description
    float3 src
    float3 value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Subtraction(float3, Single)

    per element

    Declaration
    public static float3 operator -(float3 src, float value)
    Parameters
    Type Name Description
    float3 src
    System.Single value
    Returns
    Type Description
    float3
    | Improve this Doc View Source

    Subtraction(Single, float3)

    per element

    Declaration
    public static float3 operator -(float src, float3 value)
    Parameters
    Type Name Description
    System.Single src
    float3 value
    Returns
    Type Description
    float3

    Implements

    ICudaVectorType
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX