org.jbox2d.common
Class Vec3

java.lang.Object
  extended by org.jbox2d.common.Vec3
All Implemented Interfaces:
Serializable

public class Vec3
extends Object
implements Serializable

Author:
Daniel Murphy
See Also:
Serialized Form

Field Summary
 float x
           
 float y
           
 float z
           
 
Constructor Summary
Vec3()
           
Vec3(float argX, float argY, float argZ)
           
Vec3(Vec3 argCopy)
           
 
Method Summary
 Vec3 add(Vec3 argVec)
           
 Vec3 addLocal(Vec3 argVec)
           
 Vec3 clone()
           
static Vec3 cross(Vec3 a, Vec3 b)
           
static void crossToOut(Vec3 a, Vec3 b, Vec3 out)
           
static void crossToOutUnsafe(Vec3 a, Vec3 b, Vec3 out)
           
static float dot(Vec3 a, Vec3 b)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 Vec3 mul(float argScalar)
           
 Vec3 mulLocal(float argScalar)
           
 Vec3 negate()
           
 Vec3 negateLocal()
           
 Vec3 set(float argX, float argY, float argZ)
           
 Vec3 set(Vec3 argVec)
           
 void setZero()
           
 Vec3 sub(Vec3 argVec)
           
 Vec3 subLocal(Vec3 argVec)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

z

public float z
Constructor Detail

Vec3

public Vec3()

Vec3

public Vec3(float argX,
            float argY,
            float argZ)

Vec3

public Vec3(Vec3 argCopy)
Method Detail

set

public Vec3 set(Vec3 argVec)

set

public Vec3 set(float argX,
                float argY,
                float argZ)

addLocal

public Vec3 addLocal(Vec3 argVec)

add

public Vec3 add(Vec3 argVec)

subLocal

public Vec3 subLocal(Vec3 argVec)

sub

public Vec3 sub(Vec3 argVec)

mulLocal

public Vec3 mulLocal(float argScalar)

mul

public Vec3 mul(float argScalar)

negate

public Vec3 negate()

negateLocal

public Vec3 negateLocal()

setZero

public void setZero()

clone

public Vec3 clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

dot

public static final float dot(Vec3 a,
                              Vec3 b)

cross

public static final Vec3 cross(Vec3 a,
                               Vec3 b)

crossToOut

public static final void crossToOut(Vec3 a,
                                    Vec3 b,
                                    Vec3 out)

crossToOutUnsafe

public static final void crossToOutUnsafe(Vec3 a,
                                          Vec3 b,
                                          Vec3 out)


Copyright © 2013. All Rights Reserved.