Table of Contents

Struct SurfaceHit

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.Game.dll

The point a ray strikes and the normal of the face it strikes there.

public readonly struct SurfaceHit : IEquatable<SurfaceHit>
Implements
Inherited Members

Constructors

SurfaceHit(NiPoint3, NiPoint3)

The point a ray strikes and the normal of the face it strikes there.

public SurfaceHit(NiPoint3 Position, NiPoint3 Normal)

Parameters

Position NiPoint3

The point the ray strikes.

Normal NiPoint3

The normal of the face at that point.

Properties

Normal

The normal of the face at that point.

public NiPoint3 Normal { get; init; }

Property Value

NiPoint3

Position

The point the ray strikes.

public NiPoint3 Position { get; init; }

Property Value

NiPoint3

Methods

Deconstruct(out NiPoint3, out NiPoint3)

public void Deconstruct(out NiPoint3 Position, out NiPoint3 Normal)

Parameters

Position NiPoint3
Normal NiPoint3

Equals(SurfaceHit)

public bool Equals(SurfaceHit other)

Parameters

other SurfaceHit

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SurfaceHit, SurfaceHit)

public static bool operator ==(SurfaceHit left, SurfaceHit right)

Parameters

left SurfaceHit
right SurfaceHit

Returns

bool

operator !=(SurfaceHit, SurfaceHit)

public static bool operator !=(SurfaceHit left, SurfaceHit right)

Parameters

left SurfaceHit
right SurfaceHit

Returns

bool