• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Vim.Math3d
    • AABox
    • AABox2D
    • AABox4D
    • AngularMotion
    • AxisAngle
    • Byte2
    • Byte3
    • Byte4
    • ColorHDR
    • ColorRGB
    • ColorRGBA
    • Complex
    • Constants
    • ContainmentType
    • CylindricalCoordinate
    • DAABox
    • DAABox2D
    • DAABox4D
    • DInterval
    • DPlane
    • DQuaternion
    • DRay
    • DSphere
    • DVector2
    • DVector3
    • DVector4
    • Euler
    • GeoCoordinate
    • Hash
    • HorizontalCoordinate
    • IMappable<TContainer, TPart>
    • Int2
    • Int3
    • Int4
    • Interval
    • IPoints
    • IPoints2D
    • ITransformable3D<TSelf>
    • Line
    • Line2D
    • LinearMotion
    • LinqUtil
    • LogPolarCoordinate
    • MathOps
    • Matrix4x4
    • Motion
    • MovementExtensions
    • Plane
    • PlaneIntersectionType
    • PolarCoordinate
    • Quad
    • Quad2D
    • Quaternion
    • Ray
    • Sphere
    • SphericalCoordinate
    • StatelessRandom
    • Stats<T>
    • Transform
    • Transformable3D
    • Triangle
    • Triangle2D
    • Vector2
    • Vector3
    • Vector4

Struct Ray

Implements
ITransformable3D<Ray>
System.IEquatable<Ray>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Ray : ITransformable3D<Ray>, IEquatable<Ray>

Constructors

View Source

Ray((Vector3 position, Vector3 direction))

public Ray((Vector3 position, Vector3 direction) tuple)
View Source

Ray(Vector3, Vector3)

public Ray(Vector3 position, Vector3 direction)

Fields

View Source

Direction

[DataMember]
public readonly Vector3 Direction
View Source

MaxValue

public static Ray MaxValue
View Source

MinValue

public static Ray MinValue
View Source

Position

[DataMember]
public readonly Vector3 Position
View Source

Zero

public static Ray Zero

Methods

View Source

AlmostEquals(Ray, Single)

public readonly bool AlmostEquals(Ray x, float tolerance = 1E-07F)
View Source

Create((Vector3 position, Vector3 direction))

public static Ray Create((Vector3 position, Vector3 direction) tuple)
View Source

Create(Vector3, Vector3)

public static Ray Create(Vector3 position, Vector3 direction)
View Source

Deconstruct(out Vector3, out Vector3)

public readonly void Deconstruct(out Vector3 position, out Vector3 direction)
View Source

Equals(Object)

public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source

Equals(Ray)

public readonly bool Equals(Ray x)
View Source

GetHashCode()

public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source

Intersects(AABox)

public readonly float? Intersects(AABox box)
View Source

Intersects(Plane, Single)

public readonly float? Intersects(Plane plane, float tolerance = 1E-07F)
View Source

Intersects(Sphere)

public readonly float? Intersects(Sphere sphere)
View Source

Intersects(Triangle, Single)

public readonly float? Intersects(Triangle tri, float tolerance = 1E-07F)
View Source

SetDirection(Vector3)

public readonly Ray SetDirection(Vector3 x)
View Source

SetPosition(Vector3)

public readonly Ray SetPosition(Vector3 x)
View Source

ToString()

public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source

Transform(Matrix4x4)

public readonly Ray Transform(Matrix4x4 mat)

Operators

View Source

Equality(Ray, Ray)

public static bool operator ==(Ray x0, Ray x1)
View Source

Implicit((Vector3 position, Vector3 direction) to Ray)

public static implicit operator Ray((Vector3 position, Vector3 direction) tuple)
View Source

Implicit(Ray to (Vector3 position, Vector3 direction))

public static implicit operator (Vector3 position, Vector3 direction)(Ray self)
View Source

Inequality(Ray, Ray)

public static bool operator !=(Ray x0, Ray x1)

Implements

ITransformable3D<TSelf>
System.IEquatable<T>

Extension Methods

Transformable3D.Transform<T>(ITransformable3D<T>, Matrix4x4[])
Transformable3D.Translate<T>(ITransformable3D<T>, Vector3)
Transformable3D.Translate<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.Rotate<T>(ITransformable3D<T>, Quaternion)
Transformable3D.Scale<T>(ITransformable3D<T>, Single)
Transformable3D.Scale<T>(ITransformable3D<T>, Vector3)
Transformable3D.Scale<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.ScaleX<T>(ITransformable3D<T>, Single)
Transformable3D.ScaleY<T>(ITransformable3D<T>, Single)
Transformable3D.ScaleZ<T>(ITransformable3D<T>, Single)
Transformable3D.LookAt<T>(ITransformable3D<T>, Vector3, Vector3, Vector3)
Transformable3D.RotateAround<T>(ITransformable3D<T>, Vector3, Single)
Transformable3D.Rotate<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.Reflect<T>(ITransformable3D<T>, Plane)
Transformable3D.RotateX<T>(ITransformable3D<T>, Single)
Transformable3D.RotateY<T>(ITransformable3D<T>, Single)
Transformable3D.RotateZ<T>(ITransformable3D<T>, Single)
Transformable3D.TranslateRotateScale<T>(ITransformable3D<T>, Vector3, Quaternion, Vector3)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX