Show / Hide Table of Contents

Struct Ray

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct Ray

Constructors

| Improve this Doc View Source

Ray(Vector3, Vector3)

Declaration
public Ray(Vector3 origin, Vector3 direction)
Parameters
Type Name Description
Vector3 origin
Vector3 direction

Properties

| Improve this Doc View Source

direction

Declaration
public Vector3 direction { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

origin

Declaration
public Vector3 origin { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

GetPoint(Single)

Declaration
public Vector3 GetPoint(float distance)
Parameters
Type Name Description
Single distance
Returns
Type Description
Vector3
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
| Improve this Doc View Source

ToString(String)

Declaration
public string ToString(string format)
Parameters
Type Name Description
String format
Returns
Type Description
String

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX